mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Let our if logic determin what step will run
This commit is contained in:
parent
37029cf8ae
commit
54768968f1
1 changed files with 3 additions and 2 deletions
5
.github/workflows/workflow-finished.yml
vendored
5
.github/workflows/workflow-finished.yml
vendored
|
@ -28,6 +28,8 @@ jobs:
|
|||
restart-failed-jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 5 }}
|
||||
needs:
|
||||
- show-context
|
||||
steps:
|
||||
- name: Restart failed jobs
|
||||
env:
|
||||
|
@ -39,11 +41,10 @@ jobs:
|
|||
# Branch protection rules require this to run with exit code 0.
|
||||
set-pipeline-exit-status:
|
||||
name: Set the ${{ github.event.workflow.name }} Pipeline Exit Status
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.run_attempt >= 5 }}
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.run_attempt >= 5 }}
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- show-context
|
||||
- restart-failed-jobs
|
||||
steps:
|
||||
- shell: bash
|
||||
run:
|
||||
|
|
Loading…
Add table
Reference in a new issue