Skip to content

Commit 4ebc0d0

Browse files
committed
Update check for delegated setup job
1 parent 8823bf3 commit 4ebc0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pipelines-root.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ jobs:
558558
needs: [pipelines_orchestrate, pipelines_apply_baselines, pipelines_execute]
559559
runs-on: ${{ fromJSON(inputs.runner) }}
560560
# GHA can't check for length, so we just check if there is an item in the 0 index
561-
if: ${{ fromJson(needs.pipelines_orchestrate.outputs.pipelines_jobs)[0].NewAccounts[0] != null && needs.pipelines_execute.outputs.delegate_management == 'true' && needs.pipelines_execute.outputs.terragrunt_command == 'run-all apply' }}
561+
if: ${{ fromJson(needs.pipelines_orchestrate.outputs.pipelines_jobs)[0].NewAccounts[0] != null && needs.pipelines_execute.outputs.delegate_management == 'true' && contains(needs.pipelines_execute.outputs.terragrunt_command, 'apply') }}
562562
steps:
563563
- name: Record workflow env vars
564564
env:

0 commit comments

Comments
 (0)