Skip to content

Re-run failed jobs

Re-run failed jobs #21

Workflow file for this run

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