Skip to content

Commit d4793d1

Browse files
authored
Update broken-links.yml
Eh maybe.
1 parent dbac6d6 commit d4793d1

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/broken-links.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,10 @@ jobs:
2626
run: |
2727
markdown-link-check README.md > link-check-results.txt || true
2828
29-
- name: Display Results
30-
run: |
31-
echo "#### Link Check Results ####"
32-
cat link-check-results.txt
33-
34-
- name: Fail if Broken Links Found
29+
- name: Annotate Results
3530
if: always()
3631
run: |
3732
if grep -q "ERROR" link-check-results.txt; then
38-
echo "Broken links were found:"
39-
cat link-check-results.txt
40-
exit 1
33+
echo "::error title=Broken Links Found::$(cat link-check-results.txt | sed 's/%/%25/g; s/\n/%0A/g; s/\r/%0D/g')"
4134
else
42-
echo "No broken links found! All links are valid."
43-
fi
35+
echo "::notice title=No Broken Links Found::All links are valid in the README."

0 commit comments

Comments
 (0)