Skip to content

Retry Transient Workflow Failures #1892

Retry Transient Workflow Failures

Retry Transient Workflow Failures #1892

name: Retry Transient Workflow Failures
on:
workflow_run:
workflows:
- Project Board Automation
- Changelog Automation
- Pull Request Label Sync
- Generate Reports and Deploy to GitHub Pages
- Rigorous Pull Request Review
- Run PHPUnit Tests
- Maintain Wiki
- Maintain Wiki Publication
- Update Wiki Preview
- Update Wiki
types:
- completed
permissions:
actions: write
contents: read
concurrency:
group: retry-transient-run-${{ github.event.workflow_run.id }}
cancel-in-progress: false
jobs:
retry:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
name: Retry Failed Jobs When GitHub Infrastructure Looks Transient
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- id: retry
uses: ./.github/actions/github/retry-transient-failures
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
run-id: ${{ github.event.workflow_run.id }}
run-attempt: ${{ github.event.workflow_run.run_attempt }}
workflow-name: ${{ github.event.workflow_run.name }}
- name: Write step summary
env:
RETRY_SUMMARY: ${{ steps.retry.outputs.summary }}
run: printf '%s\n' "$RETRY_SUMMARY" >> "$GITHUB_STEP_SUMMARY"