Skip to content

Commit db09e2c

Browse files
authored
feat: add retry workflow (#638)
1 parent 658ee70 commit db09e2c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/retry.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Retry workflow
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
run_id:
7+
required: true
8+
jobs:
9+
rerun:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: rerun ${{ inputs.run_id }}
13+
env:
14+
GH_REPO: ${{ github.repository }}
15+
GH_TOKEN: ${{ github.token }}
16+
run: |
17+
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
18+
gh run rerun ${{ inputs.run_id }} --failed

0 commit comments

Comments
 (0)