Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/check-broken-pr-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,36 +62,39 @@ jobs:
print "\nBroken links found in:\n" file >> "lychee/comment.md"
next
}

/\[ERROR\]/ {
msg = $0
sub(/^- \[ \] /, "", msg)
sub(/^\[ERROR\] /, "", msg)
gsub("^file:///home/runner/work/UmbracoDocs/UmbracoDocs/", "", msg)
gsub(/\|/, "\\|", msg) # escape Markdown pipe
print "\nβš“ Anchor not found β†’ " msg "\n" >> "lychee/comment.md"
next
}

/\[404\]/ {
msg = $0
sub(/^- \[ \] /, "", msg)
sub(/^\[404\] /, "", msg)

gsub(/\|/, "\\|", msg) # escape pipe
print "\n❌ 404 Not Found β†’ " msg "\n" >> "lychee/comment.md"
next
}

/\[301\]|\[302\]/ {
msg = $0
sub(/^- \[ \] /, "", msg)
sub(/^\[(301|302)\] /, "", msg)
gsub(/\|/, "\\|", msg) # escape pipe
print "\nπŸ”€ Redirect β†’ " msg "\n" >> "lychee/comment.md"
next
}

/Timeout/ && !/Timeouts/ {
msg = $0
sub(/^- \[ \] /, "", msg)
gsub(/\|/, "\\|", msg) # escape pipe just in case
print "\n⏳ Timeout β†’ " msg "\n" >> "lychee/comment.md"
next
}
Expand Down