Skip to content

Commit 10f9e29

Browse files
committed
Refactor CI pipeline conditions to improve handling of skipped jobs and streamline execution flow
1 parent 9bc10c9 commit 10f9e29

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/main-pipeline.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ jobs:
8585
- 'argocd/monitoring.yml'
8686
- '.github/workflows/monitoring.yml'
8787
88-
# CI Tests - runs when app changes or manual dispatch
8988
ci:
9089
name: Run CI Tests
9190
needs: [detect-changes]
@@ -129,8 +128,11 @@ jobs:
129128
needs: [docker, detect-changes]
130129
if: |
131130
!cancelled() &&
132-
!inputs.skip-terraform &&
133-
(needs.docker.result == 'success' || (needs.docker.result == 'skipped' && inputs.skip-docker)) && (
131+
!inputs.skip-terraform && (
132+
needs.docker.result == 'success' ||
133+
needs.docker.result == 'skipped' ||
134+
(needs.detect-changes.outputs.infra-changed == 'true' && needs.detect-changes.outputs.app-changed == 'false')
135+
) && (
134136
inputs.force-all ||
135137
(github.event_name == 'workflow_dispatch') ||
136138
needs.detect-changes.outputs.infra-changed == 'true'

0 commit comments

Comments
 (0)