Skip to content

Commit 2bd83b6

Browse files
committed
CCM-11908: Test
1 parent 7ac9b22 commit 2bd83b6

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/dispatch_internal_repo_workflow.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ on:
3939
type: string
4040
description: Internal repo reference (branch or tag)
4141
default: "main"
42+
overrides:
43+
type: string
44+
description: Comma separated list of pipeline overrides in OVR_XXX=YYYY format
45+
default: ""
4246

4347
permissions:
4448
id-token: write
@@ -69,6 +73,7 @@ jobs:
6973
--arg terraformAction "${{ inputs.terraformAction }}" \
7074
--arg callerRunId "$callerRunId" \
7175
--arg targetWorkflow "${{ inputs.targetWorkflow }}" \
76+
--arg overrides "${{ inputs.overrides }}" \
7277
'{
7378
"ref": "${{ inputs.internalRef }}",
7479
"inputs": (
@@ -82,6 +87,7 @@ jobs:
8287
} +
8388
(if ($targetWorkflow | test("dispatch-(acceptance|contextual|product|security)-tests-.*\\.yaml"))
8489
then { "callerRunId": $callerRunId } else {} end)
90+
+ (if $overrides != "" then { "overrides": $overrides } else {} end)
8591
)
8692
}')
8793
@@ -114,6 +120,7 @@ jobs:
114120
--arg targetAccountGroup "${{ inputs.targetAccountGroup }}" \
115121
--arg targetComponent "${{ inputs.targetComponent }}" \
116122
--arg terraformAction "${{ inputs.terraformAction }}" \
123+
--arg overrides "${{ inputs.overrides }}" \
117124
'.workflow_runs[]
118125
| select(.path == ".github/workflows/" + $targetWorkflow)
119126
| select(.name

.github/workflows/pr_create_dynamic_env.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
permissions:
1616
id-token: write
1717
contents: read
18-
uses: ./.github/workflows/reusable_internal_repo_build.yaml
18+
uses: ./.github/workflows/dispatch_internal_repo_workflow.yaml
1919
secrets: inherit
2020
with:
2121
jobName: Sandbox set up

.github/workflows/reusable_internal_repo_build.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ on:
2929
type: string
3030
description: The Terraform component to deploy
3131
default: plan
32-
overrides:
33-
type: string
34-
description: Comma separated list of pipeline overrides in OVR_XXX=YYYY format
35-
default: ""
3632

3733
concurrency:
3834
group: ${{ inputs.targetEnvironment }}-${{ inputs.targetAccountGroup }}-${{ inputs.targetComponent }}-${{ inputs.terraformAction }}
@@ -59,15 +55,13 @@ jobs:
5955
--arg targetAccountGroup ${{ inputs.targetAccountGroup }} \
6056
--arg targetComponent ${{ inputs.targetComponent }} \
6157
--arg terraformAction ${{ inputs.terraformAction }} \
62-
--arg overrides ${{ inputs.overrides }} \
6358
'{ "ref": "main",
6459
"inputs": {
6560
"releaseVersion", $releaseVersion,
6661
"targetEnvironment", $targetEnvironment,
6762
"targetAccountGroup", $targetAccountGroup,
6863
"targetComponent", $targetComponent,
69-
"terraformAction", $terraformAction,
70-
"overrides", $overrides
64+
"terraformAction", $terraformAction
7165
}
7266
}')
7367

0 commit comments

Comments
 (0)