Skip to content

Commit 5476896

Browse files
committed
Let our if logic determin what step will run
1 parent 37029cf commit 5476896

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/workflow-finished.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
restart-failed-jobs:
2929
runs-on: ubuntu-latest
3030
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 5 }}
31+
needs:
32+
- show-context
3133
steps:
3234
- name: Restart failed jobs
3335
env:
@@ -39,11 +41,10 @@ jobs:
3941
# Branch protection rules require this to run with exit code 0.
4042
set-pipeline-exit-status:
4143
name: Set the ${{ github.event.workflow.name }} Pipeline Exit Status
42-
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.run_attempt >= 5 }}
44+
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.run_attempt >= 5 }}
4345
runs-on: ubuntu-latest
4446
needs:
4547
- show-context
46-
- restart-failed-jobs
4748
steps:
4849
- shell: bash
4950
run:

0 commit comments

Comments
 (0)