Skip to content

Commit

Permalink
split link checker jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ggonzalez94 committed Oct 4, 2024
1 parent 01da831 commit 09935d8
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
branches: [ main, v* ]

jobs:
check-links:
name: Check Links
check-links-md:
name: Check Markdown Links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -21,10 +21,18 @@ jobs:
with:
args: --no-progress './**/*.md'
fail: true


check-links-adoc:
name: Check AsciiDoc Links
runs-on: ubuntu-latest
# We only run the AsciiDoc link checker on v* branches because:
# 1. The main branch may contain documentation that is not yet published.
if: startsWith(github.ref, 'refs/heads/v') || startsWith(github.base_ref, 'v')
steps:
- uses: actions/checkout@v4

- name: Run linkspector
uses: umbrelladocs/action-linkspector@v1
with:
fail_on_error: true



0 comments on commit 09935d8

Please sign in to comment.