Skip to content

Commit 01073cf

Browse files
authored
Merge pull request #2095 from gooddata/md-fix-empty-matrix-deployment-jobs
fix(ci): guard the matrix deployment jobs against an empty job list
2 parents d227561 + 07f8f9b commit 01073cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/lcm-pipeline.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ jobs:
225225
!cancelled() &&
226226
!contains(needs.*.result, 'failure') &&
227227
needs.build-helmreleases.result == 'success' &&
228+
needs.build-helmreleases.outputs.staging_helmreleases != '[]' &&
229+
needs.build-helmreleases.outputs.staging_helmreleases != '' &&
228230
inputs.deploy
229231
strategy:
230232
matrix:
@@ -335,6 +337,8 @@ jobs:
335337
!cancelled() &&
336338
!contains(needs.*.result, 'failure') &&
337339
needs.build-helmreleases.result == 'success' &&
340+
needs.build-helmreleases.outputs.updated_prod_cluster_names != '[]' &&
341+
needs.build-helmreleases.outputs.updated_prod_cluster_names != '' &&
338342
inputs.AUTO_MERGE &&
339343
inputs.deploy
340344
strategy:

0 commit comments

Comments
 (0)