Let our if logic determin what step will run

This commit is contained in:
Daniel A. Wozniak 2025-02-03 17:50:01 -07:00
parent 37029cf8ae
commit 54768968f1

View file

@ -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: