diff --git a/.github/workflows/retry.yml b/.github/workflows/retry.yml new file mode 100644 index 000000000..0219289bc --- /dev/null +++ b/.github/workflows/retry.yml @@ -0,0 +1,18 @@ +name: Retry workflow + +on: + workflow_dispatch: + inputs: + run_id: + required: true +jobs: + rerun: + runs-on: ubuntu-latest + steps: + - name: rerun ${{ 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