Skip to content

Commit

Permalink
ci: add retry
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Nov 25, 2024
1 parent a05fa54 commit 1e8b430
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/retry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Retry

on:
workflow_run:
workflows:
- Test
types:
- completed

jobs:
retry:
runs-on: ubuntu-latest
if: ${{ github.repository == 'panva/jose' && github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt == 1 }}
steps:
- run: gh api -XPOST ${{ github.event.workflow_run.rerun_url }}-failed-jobs
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 1e8b430

Please sign in to comment.