We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a55ce commit ab185c5Copy full SHA for ab185c5
.github/workflows/auto-rerun-helper.yml
@@ -0,0 +1,25 @@
1
+name: Auto-re-run Random Test (helper)
2
+
3
+on:
4
+ workflow_run:
5
+ workflows: ["Retry Test | Random Failure Test Workflow"]
6
+ types: [completed]
7
8
+permissions:
9
+ actions: write # needed for rerun
10
+ contents: read
11
12
+jobs:
13
+ rerun-failed:
14
+ if: >
15
+ github.event.workflow_run.conclusion == 'failure' &&
16
+ github.event.workflow_run.run_attempt < 3
17
+ runs-on: ubuntu-24.04
18
19
+ steps:
20
+ - name: Re-run only failed jobs
21
+ env:
22
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23
+ run: |
24
+ gh run rerun ${{ github.event.workflow_run.id }} --failed \
25
+ --repo ${{ github.repository }}
0 commit comments