Skip to content

Commit

Permalink
Retry on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nhenneaux committed Jan 18, 2024
1 parent 03a45bc commit eaf0ec0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ on:
schedule:
- cron: '0 5 */1 * *'

rerun-failed-jobs:
runs-on: ubuntu-latest
needs: [ build ]
if: failure()
steps:
- name: Rerun failed jobs in the current workflow
env:
GH_TOKEN: ${{ github.token }}
run: gh run rerun ${{ github.run_id }} --failed

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit eaf0ec0

Please sign in to comment.