Skip to content

Commit ac5feb1

Browse files
authored
chore: retry release process on failure (#637)
* retry release process on failure
1 parent db09e2c commit ac5feb1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,16 @@ jobs:
218218
files: |
219219
${{ steps.artifacts.outputs.file_name }}
220220
${{ steps.man.outputs.foundry_man }}
221+
222+
retry-on-failure:
223+
if: failure() && fromJSON(github.run_attempt) < 3
224+
needs: [release]
225+
runs-on: ubuntu-latest
226+
steps:
227+
- env:
228+
GH_REPO: ${{ github.repository }}
229+
GH_TOKEN: ${{ github.token }}
230+
run: gh workflow run retry.yml -F run_id=${{ github.run_id }}
221231

222232
cleanup:
223233
name: Release cleanup

0 commit comments

Comments
 (0)