Skip to content

Commit

Permalink
Update broken link checker
Browse files Browse the repository at this point in the history
- Fails on all HTTP 4xx errors
  • Loading branch information
zhannaklimanova authored and yinanazhou committed Jul 12, 2023
1 parent 93d90d9 commit 97632e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/broken-link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
echo "$output"
# Fail the github actions only if there's a single HTTP 404 found
echo "$output" | grep -q 'HTTP_404' && flag=1
echo "$output" | grep -Eq 'HTTP_4[0-9]{2}' && flag=1
if [ "$flag" -eq "1" ]; then
echo "Broken links were found, exiting with an error."
Expand Down

0 comments on commit 97632e1

Please sign in to comment.