Skip to content

Commit

Permalink
Break out PRs to separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Feb 18, 2025
1 parent 9adaf73 commit 0ce2fc6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/workflow-finished.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ run-name: Workflow Finished ${{ github.event.workflow_run.display_title }} (${{
on:
workflow_run:
workflows:
- CI
- Nightly
- Scheduled
- Stage Release
branches:
- 3006.x
- 3007.x
- master
types:
- completed

Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/workflow-pr-finished.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Workflow PR Finished
run-name: Workflow PR Finished ${{ github.event.workflow_run.display_title }} (${{ github.event.workflow_run.conclusion }})

on:
workflow_run:
workflows:
- CI
types:
- completed

permissions:
contents: read
pull-requests: read
actions: write

jobs:

restart-failed-jobs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 5 }}
steps:
- name: Restart failed jobs
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
run: |
gh run rerun ${{ github.event.workflow_run.id }} --failed

0 comments on commit 0ce2fc6

Please sign in to comment.