1
0

rerun.yml 464 B

12345678910111213141516171819
  1. name: Rerun workflow
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. run_id:
  6. description: The workflow id to relanch
  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