Skip to content

Retry Failed Nightly Jobs #526

Retry Failed Nightly Jobs

Retry Failed Nightly Jobs #526

Workflow file for this run

name: Retry Failed Nightly Jobs
on:
workflow_run:
workflows: ["Nightly Examples", "Nightly Signal Execute"]
types: [completed]
permissions:
actions: write
jobs:
retry:
if: >-
github.event.workflow_run.conclusion == 'failure'
&& github.event.workflow_run.run_attempt < 3
runs-on: ubuntu-latest
steps:
- name: Re-run failed jobs (attempt ${{ github.event.workflow_run.run_attempt }}/3)
uses: actions/github-script@v7
with:
script: |
await github.rest.actions.reRunWorkflowFailedJobs({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{ github.event.workflow_run.id }},
});