-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.29 KB
/
retry-transient-failures.yml
File metadata and controls
48 lines (41 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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"