Skip to content

Commit ab185c5

Browse files
authored
feat: add auto-rerun-helper to default branch (#105)
1 parent c9a55ce commit ab185c5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)