We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbac6d6 commit d4793d1Copy full SHA for d4793d1
.github/workflows/broken-links.yml
@@ -26,18 +26,10 @@ jobs:
26
run: |
27
markdown-link-check README.md > link-check-results.txt || true
28
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
+ - name: Annotate Results
35
if: always()
36
37
if grep -q "ERROR" link-check-results.txt; then
38
- echo "Broken links were found:"
39
40
- exit 1
+ echo "::error title=Broken Links Found::$(cat link-check-results.txt | sed 's/%/%25/g; s/\n/%0A/g; s/\r/%0D/g')"
41
else
42
- echo "No broken links found! All links are valid."
43
- fi
+ echo "::notice title=No Broken Links Found::All links are valid in the README."
0 commit comments