File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1818 run : cargo install lychee
1919
2020 - name : Check external links
21- run : lychee --verbose --exclude-mail --no-progress ./**/*.md
21+ id : check_links
22+ run : lychee --verbose --exclude-mail --no-progress ./**/*.md | tee lychee-output.txt
23+
24+ - name : Fail CI if broken links exist
25+ run : |
26+ if grep -q "🚫" lychee-output.txt; then
27+ echo "❌ Broken links found! CI is failing."
28+ exit 1
29+ fi
2230
2331 maven-cd :
2432 needs : validate-urls
Original file line number Diff line number Diff line change 1- name : Check External Links
1+ name : Validate External Links
22
33on :
44 pull_request :
1818 run : cargo install lychee
1919
2020 - name : Run lychee to check links
21- run : lychee --verbose --exclude-mail --no-progress ./**/*.md
21+ id : lychee_check
22+ run : lychee --verbose --exclude-mail --no-progress ./**/*.md | tee lychee-output.txt
23+
24+ - name : Fail CI if broken links exist
25+ run : |
26+ if grep -q "🚫" lychee-output.txt; then
27+ echo "Broken links found! CI is failing."
28+ exit 1
29+ fi
You can’t perform that action at this time.
0 commit comments