diff --git a/.github/workflows/check-lint.yml b/.github/workflows/check-lint.yml index 270f9ddba..a7f4aa9f7 100644 --- a/.github/workflows/check-lint.yml +++ b/.github/workflows/check-lint.yml @@ -78,10 +78,15 @@ jobs: - uses: actions/checkout@v4 - name: Link Checker - uses: lycheeverse/lychee-action@v2.5.0 + uses: lycheeverse/lychee-action@v2.9.0 with: # Ignore the README.md file as some social sharing links are not valid - args: --verbose --no-progress --exclude-path 'README.md' './**/*.md' './**/*.html' './**/*.rst' + # Built HTML's root-relative links (/favicon.ico, /src/styles.css) resolve + # against each app's served root, not the checkout - lychee >= the 2.9.0 + # action errors on them without a single --root-dir, and no one root serves + # every app. Link-check the sources; build artifacts are verified by the + # build/deploy jobs that actually serve them. + args: --verbose --no-progress --exclude-path 'README.md' './**/*.md' './**/*.rst' fail: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}