Skip to content

Commit 24bc00f

Browse files
authored
Simplify error-raise logic in links.yml (#187)
Signed-off-by: Glenn Jocher <[email protected]>
1 parent 7b07dee commit 24bc00f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/links.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,8 @@ jobs:
160160
echo "$ESCAPED_SUMMARY" >> $GITHUB_ENV
161161
echo "EOF" >> $GITHUB_ENV
162162
163-
# Check if lychee found any broken links
164-
if grep -q "0 Errors" summary.txt; then
165-
echo "No broken links found."
166-
# Retry step may need exit 0
167-
exit 0
168-
else
169-
echo "Broken links found."
163+
# Raise error if broken links found
164+
if ! grep -q "0 Errors" summary.txt; then
170165
exit 1
171166
fi
172167

0 commit comments

Comments
 (0)