Skip to content

Commit 3e5b5a5

Browse files
authored
Skip check if file is not .yml or .md (#11760)
1 parent 9bd3320 commit 3e5b5a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: .github/workflows/check-urls.yml

+4
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,17 @@ jobs:
7474
fail-fast: false
7575
steps:
7676
- name: Checkout
77+
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
7778
uses: actions/checkout@v4
7879
with:
7980
fetch-depth: ${{ needs.get-changed-files.outputs.fetch-depth }}
8081
- name: Setup Ruby v2.6
82+
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
8183
uses: ruby/setup-ruby@v1
8284
with:
8385
ruby-version: 2.6
8486
- name: Install awesome_bot
87+
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
8588
run: |
8689
gem install awesome_bot
8790
- name: Set output
@@ -101,6 +104,7 @@ jobs:
101104
102105
echo "FILEPATH=${file_path}" >> "$GITHUB_OUTPUT"
103106
- name: "Check URLs of file: ${{ matrix.file }}"
107+
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
104108
run: |
105109
awesome_bot "${{ matrix.file }}" --allow-redirect --allow-dupe --allow-ssl || true;
106110
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)