Skip to content

Commit e68317a

Browse files
committed
Merge branch 'main' of https://github.com/umbraco/UmbracoDocs into vale-errors-v1
2 parents 4b93f92 + 5d54c7d commit e68317a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,38 +68,38 @@ jobs:
6868
sub(/^- \[ \] /, "", msg)
6969
sub(/^\[ERROR\] /, "", msg)
7070
gsub("^file:///home/runner/work/UmbracoDocs/UmbracoDocs/", "", msg)
71-
print "\n⚓ Anchor not found → " msg >> "lychee/comment.md"
71+
print "\n⚓ Anchor not found → " msg "\n" >> "lychee/comment.md"
7272
next
7373
}
7474

7575
/\[404\]/ {
7676
msg = $0
7777
sub(/^- \[ \] /, "", msg)
7878
sub(/^\[404\] /, "", msg)
79-
print "\n❌ 404 Not Found → " msg >> "lychee/comment.md"
79+
80+
print "\n❌ 404 Not Found → " msg "\n" >> "lychee/comment.md"
8081
next
8182
}
8283

8384
/\[301\]|\[302\]/ {
8485
msg = $0
8586
sub(/^- \[ \] /, "", msg)
8687
sub(/^\[(301|302)\] /, "", msg)
87-
print "\n🔀 Redirect → " msg >> "lychee/comment.md"
88+
print "\n🔀 Redirect → " msg "\n" >> "lychee/comment.md"
8889
next
8990
}
9091

9192
/Timeout/ && !/Timeouts/ {
9293
msg = $0
9394
sub(/^- \[ \] /, "", msg)
94-
print "\n⏳ Timeout → " msg >> "lychee/comment.md"
95+
print "\n⏳ Timeout → " msg "\n" >> "lychee/comment.md"
9596
next
9697
}
9798
' lychee/out_raw.md
9899
99100
# Add header only if we found content
100101
if [ -s lychee/comment.md ]; then
101102
sed -i '1i **The Link Checker found broken links in your PR**.\n Please review the following list:\n' lychee/comment.md
102-
echo "" >> lychee/comment.md # 👈 force trailing blank line
103103
echo "has_content=true" >> $GITHUB_OUTPUT
104104
else
105105
echo "has_content=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)