Skip to content

Commit f32f2cc

Browse files
committed
fix var checks
1 parent c618acc commit f32f2cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-preview.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242
run: |
4343
PR=$(gh pr list --head ${{ github.ref_name }} --limit 1 --json number --jq '.[].number')
4444
45-
if [ -z "$PR" ]; then
45+
if [ -n "$PR" ]; then
4646
URL=$(cat wrangler-logs.json | jq 'select(.type=="version-upload") | .preview_url')
4747
48-
if [ -z "$URL" ]; then
48+
if [ -n "$URL" ]; then
4949
BODY="**Preview URL:** $URL"
50-
gh pr comment "$PR" --repo ${{ github.repository }} --edit-last --body-file -
50+
echo -e "$BODY" | gh pr comment "$PR" --edit-last --body-file -
5151
fi
5252
fi
5353
- uses: actions/cache/save@v4

0 commit comments

Comments
 (0)