Compare commits

...

2 Commits

Author SHA1 Message Date
Leithen 054cbe119c
Merge 1f1ce0df68 into 9bd33204fa 2024-11-17 18:07:42 +00:00
Leithen Crider 1f1ce0df68 Skip check if file is not .yml or .md 2024-11-17 11:07:36 -07:00
1 changed files with 4 additions and 0 deletions

View File

@ -74,14 +74,17 @@ jobs:
fail-fast: false fail-fast: false
steps: steps:
- name: Checkout - name: Checkout
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: ${{ needs.get-changed-files.outputs.fetch-depth }} fetch-depth: ${{ needs.get-changed-files.outputs.fetch-depth }}
- name: Setup Ruby v2.6 - name: Setup Ruby v2.6
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
ruby-version: 2.6 ruby-version: 2.6
- name: Install awesome_bot - name: Install awesome_bot
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
run: | run: |
gem install awesome_bot gem install awesome_bot
- name: Set output - name: Set output
@ -101,6 +104,7 @@ jobs:
echo "FILEPATH=${file_path}" >> "$GITHUB_OUTPUT" echo "FILEPATH=${file_path}" >> "$GITHUB_OUTPUT"
- name: "Check URLs of file: ${{ matrix.file }}" - name: "Check URLs of file: ${{ matrix.file }}"
if: ${{ endsWith(matrix.file, '.yml') || endsWith(matrix.file, '.md') }}
run: | run: |
awesome_bot "${{ matrix.file }}" --allow-redirect --allow-dupe --allow-ssl || true; awesome_bot "${{ matrix.file }}" --allow-redirect --allow-dupe --allow-ssl || true;
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4