mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
27 lines
690 B
YAML
27 lines
690 B
YAML
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
|