fix: harden automated release workflow

This commit is contained in:
Lan committed 2026-07-11 21:53:57 +08:00
1 parent 08042459ae
commit 3cb12e4202
1 file changed
+3 -1
+3 -1
View File
@@ -30,8 +30,10 @@ jobs:
if: ${{ steps.release.outputs.prs_created == 'true' }}
env:
GH_TOKEN: ${{ github.token }}
RELEASE_PR: ${{ fromJSON(steps.release.outputs.pr).number }}
GH_REPO: ${{ github.repository }}
RELEASE_PR_JSON: ${{ steps.release.outputs.pr }}
run: |
RELEASE_PR="$(jq -r '.number' <<< "$RELEASE_PR_JSON")"
for attempt in {1..120}; do
if gh pr merge "$RELEASE_PR" --squash --delete-branch; then
break