diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index c809e880..119deb16 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -30,12 +30,17 @@ jobs: - name: Build Jekyll site run: bundle exec jekyll build --trace + - name: Filter files to check (include _site, exclude _site/css and _site/img) + run: | + # Find all files in _site, but exclude _site/css and _site/img + find ./_site -type f | grep -vE '/(css|img)/' > files-to-check.txt + - name: Link Checker id: lychee uses: lycheeverse/lychee-action@v2 with: fail: false - directory: _site + files: 'files-to-check.txt' - name: Create Issue From File if: steps.lychee.outputs.exit_code != 0