Re-run failed jobs #511
This file contains 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: Re-run failed jobs | |
on: | |
workflow_dispatch: | |
inputs: | |
run-id: | |
required: true | |
jobs: | |
re-run: | |
name: Re-run failed jobs (${{ inputs.run-id }}) | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
steps: | |
- name: Re-run ${{ inputs.run-id }} | |
env: | |
GH_REPO: ${{ github.repository }} | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
gh run watch ${{ inputs.run-id }} > /dev/null 2>&1 | |
gh run rerun ${{ inputs.run-id }} --failed |