master
yaml 19 lines 446 Bytes
Raw
1 name: Rerun failed 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 GH_DEBUG: api
17 run: |
18 gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
19 gh run rerun ${{ inputs.run_id }} --failed