Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/check_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -uo pipefail
lychee --config lychee.toml --format markdown -o lychee-report.md 'content/**/*.md'
status=$?
# Actions runs this with bash -e; capture lychee's exit code rather
# than letting errexit abort the step before the report is written.
status=0
lychee --config lychee.toml --format markdown -o lychee-report.md 'content/**/*.md' || status=$?
cat lychee-report.md >> "$GITHUB_STEP_SUMMARY"
# 2 = broken links found; anything else non-zero is a lychee failure.
if [ $status -eq 2 ]; then
Expand Down
Loading