You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
464 B
20 lines
464 B
name: Rerun workflow
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
run_id:
|
|
description: The workflow id to relanch
|
|
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
|