ci: put the preview-comment marker on its own line

This commit is contained in:
imccyu
2026-08-21 20:35:34 +08:00
parent c2a30af92d
commit 54b05a8dcb
@@ -162,6 +162,9 @@ jobs:
echo "preview URL already commented: $existing"
exit 0
fi
gh pr comment "$PR" --body \
"$marker \
[Preview for #$PR](https://pr-$PR.${CF_PROJECT}.pages.dev) (requires Cloudflare Access sign-in)"
# The marker sits on its own line: markdown renders no link on a
# line that opens with a raw HTML comment.
printf '%s\n\n%s\n' \
"$marker" \
"[Preview for #$PR](https://pr-$PR.${CF_PROJECT}.pages.dev) (requires Cloudflare Access sign-in)" \
| gh pr comment "$PR" --body-file -