Rerun Workflow #4
This file contains hidden or 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
| name: Rerun Workflow | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| run_id: | |
| required: true | |
| jobs: | |
| rerun: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Rerun workflow with run_id ${{ 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 |