Skip to content

Commit a5ca040

Browse files
committed
edit-last fails if no comment already exists
1 parent f32f2cc commit a5ca040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
if [ -n "$URL" ]; then
4949
BODY="**Preview URL:** $URL"
50-
echo -e "$BODY" | gh pr comment "$PR" --edit-last --body-file -
50+
gh pr comment "$PR" --edit-last --body "$BODY" || gh pr comment "$PR" --body "$BODY"
5151
fi
5252
fi
5353
- uses: actions/cache/save@v4

0 commit comments

Comments
 (0)