fix: harden automated release workflow
This commit is contained in:
1 parent
ee8f9082ab
commit
46883c90ff
1 file changed
+4
-1
@@ -32,8 +32,10 @@ jobs:
|
|||||||
if: ${{ steps.release.outputs.prs_created == 'true' }}
|
if: ${{ steps.release.outputs.prs_created == 'true' }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
RELEASE_PR: ${{ fromJSON(steps.release.outputs.pr).number }}
|
GH_REPO: ${{ github.repository }}
|
||||||
|
RELEASE_PR_JSON: ${{ steps.release.outputs.pr }}
|
||||||
run: |
|
run: |
|
||||||
|
RELEASE_PR="$(jq -r '.number' <<< "$RELEASE_PR_JSON")"
|
||||||
for attempt in {1..120}; do
|
for attempt in {1..120}; do
|
||||||
if gh pr merge "$RELEASE_PR" --squash --delete-branch; then
|
if gh pr merge "$RELEASE_PR" --squash --delete-branch; then
|
||||||
break
|
break
|
||||||
@@ -50,5 +52,6 @@ jobs:
|
|||||||
if: ${{ steps.release.outputs.release_created == 'true' }}
|
if: ${{ steps.release.outputs.release_created == 'true' }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
GH_REPO: ${{ github.repository }}
|
||||||
RELEASE_TAG: ${{ steps.release.outputs.tag_name }}
|
RELEASE_TAG: ${{ steps.release.outputs.tag_name }}
|
||||||
run: gh workflow run docker-image.yml --ref master -f release_tag="$RELEASE_TAG"
|
run: gh workflow run docker-image.yml --ref master -f release_tag="$RELEASE_TAG"
|
||||||
Reference in new issue
Block a user