Skip to content

Commit

Permalink
Skip check if file is not .yml or .md
Browse files Browse the repository at this point in the history
  • Loading branch information
Thenlie committed Nov 17, 2024
1 parent 9bd3320 commit 1f1ce0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check-urls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,17 @@ jobs:
fail-fast: false
steps:
- name: Checkout
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
uses: actions/checkout@v4
with:
fetch-depth: ${{ needs.get-changed-files.outputs.fetch-depth }}
- name: Setup Ruby v2.6
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Install awesome_bot
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
run: |
gem install awesome_bot
- name: Set output
Expand All @@ -101,6 +104,7 @@ jobs:
echo "FILEPATH=${file_path}" >> "$GITHUB_OUTPUT"
- name: "Check URLs of file: ${{ matrix.file }}"
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
run: |
awesome_bot "${{ matrix.file }}" --allow-redirect --allow-dupe --allow-ssl || true;
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 1f1ce0d

Please sign in to comment.