We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c618acc commit f32f2ccCopy full SHA for f32f2cc
.github/workflows/publish-preview.yml
@@ -42,12 +42,12 @@ jobs:
42
run: |
43
PR=$(gh pr list --head ${{ github.ref_name }} --limit 1 --json number --jq '.[].number')
44
45
- if [ -z "$PR" ]; then
+ if [ -n "$PR" ]; then
46
URL=$(cat wrangler-logs.json | jq 'select(.type=="version-upload") | .preview_url')
47
48
- if [ -z "$URL" ]; then
+ if [ -n "$URL" ]; then
49
BODY="**Preview URL:** $URL"
50
- gh pr comment "$PR" --repo ${{ github.repository }} --edit-last --body-file -
+ echo -e "$BODY" | gh pr comment "$PR" --edit-last --body-file -
51
fi
52
53
- uses: actions/cache/save@v4
0 commit comments