Skip to content

Commit 0ce2fc6

Browse files
committed
Break out PRs to separate workflow
1 parent 9adaf73 commit 0ce2fc6

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

.github/workflows/workflow-finished.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ run-name: Workflow Finished ${{ github.event.workflow_run.display_title }} (${{
44
on:
55
workflow_run:
66
workflows:
7-
- CI
87
- Nightly
98
- Scheduled
109
- Stage Release
10+
branches:
11+
- 3006.x
12+
- 3007.x
13+
- master
1114
types:
1215
- completed
1316

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Workflow PR Finished
2+
run-name: Workflow PR Finished ${{ github.event.workflow_run.display_title }} (${{ github.event.workflow_run.conclusion }})
3+
4+
on:
5+
workflow_run:
6+
workflows:
7+
- CI
8+
types:
9+
- completed
10+
11+
permissions:
12+
contents: read
13+
pull-requests: read
14+
actions: write
15+
16+
jobs:
17+
18+
restart-failed-jobs:
19+
runs-on: ubuntu-latest
20+
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 5 }}
21+
steps:
22+
- name: Restart failed jobs
23+
env:
24+
GH_REPO: ${{ github.repository }}
25+
GH_TOKEN: ${{ github.token }}
26+
run: |
27+
gh run rerun ${{ github.event.workflow_run.id }} --failed

0 commit comments

Comments
 (0)