We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d82e11 commit e219e66Copy full SHA for e219e66
.github/workflows/broken-link-checker.yml
@@ -95,6 +95,7 @@ jobs:
95
return 0
96
else
97
echo " ❌ Failed: HTTP $http_code"
98
+ failed_http_code="$http_code"
99
return 1
100
fi
101
}
@@ -113,12 +114,12 @@ jobs:
113
114
while IFS= read -r url; do
115
[ -z "$url" ] && continue
116
if ! verify_with_curl "$url"; then
- verified_failures="${verified_failures}${url}\n"
117
+ verified_failures="${verified_failures}${url} (HTTP ${failed_http_code})\n"
118
119
done <<< "$urls_to_verify"
120
121
- # Final decision
122
+ # Final results
123
echo ""
124
if [ -n "$verified_failures" ]; then
125
echo "❌ CI Failed: The following links failed:"
0 commit comments