Skip to content

Commit 6501ab1

Browse files
authored
Added message for unknown links
1 parent 9e965d9 commit 6501ab1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/check-broken-pr-links.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ jobs:
9898
print "\n⏳ Timeout → " msg "\n" >> "lychee/comment.md"
9999
next
100100
}
101+
102+
# catch-all for any other errors
103+
/^\- \[ \] \[[0-9]+\]/ {
104+
msg = $0
105+
sub(/^- \[ \] /, "", msg)
106+
gsub(/\|/, "|", msg)
107+
print "\n⚠ Unknown error → " msg "\n" >> "lychee/comment.md"
108+
next
109+
}
110+
101111
' lychee/out_raw.md
102112
103113
# Add header only if we found content

0 commit comments

Comments
 (0)