Skip to content

Commit 3cb12e4

Browse files
committed
fix: harden automated release workflow
1 parent 0804245 commit 3cb12e4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release-please.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ jobs:
3030
if: ${{ steps.release.outputs.prs_created == 'true' }}
3131
env:
3232
GH_TOKEN: ${{ github.token }}
33-
RELEASE_PR: ${{ fromJSON(steps.release.outputs.pr).number }}
33+
GH_REPO: ${{ github.repository }}
34+
RELEASE_PR_JSON: ${{ steps.release.outputs.pr }}
3435
run: |
36+
RELEASE_PR="$(jq -r '.number' <<< "$RELEASE_PR_JSON")"
3537
for attempt in {1..120}; do
3638
if gh pr merge "$RELEASE_PR" --squash --delete-branch; then
3739
break

0 commit comments

Comments
 (0)