ci: put the preview-comment marker on its own line
This commit is contained in:
parent
c2a30af92d
commit
54b05a8dcb
1 changed files with 6 additions and 3 deletions
|
|
@ -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 -
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue