diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f82580..6388637 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }}