-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically re-run failed jobs (#2795)
Some CI jobs are a bit flaky, without an obvious way for us to fix them. Instead, I've added a new job that checks if any job failed, and re-runs them automatically.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
run-id: | ||
required: true | ||
|
||
jobs: | ||
rerun: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: rerun ${{ inputs.run-id }} | ||
env: | ||
GH_REPO: ${{ github.repository }} | ||
GH_TOKEN: ${{ github.token }} | ||
GH_DEBUG: api | ||
run: | | ||
gh run watch ${{ inputs.run-id }} > /dev/null 2>&1 | ||
gh run rerun ${{ inputs.run-id }} --failed |