Skip to content

Commit 116bfd2

Browse files
committed
CCM-10294: add ability to skip dynamic env plan
1 parent 37f4d14 commit 116bfd2

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/dispatch_internal_repo_workflow.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ on:
3838
internalRef:
3939
type: string
4040
description: Internal repo reference (branch or tag)
41-
default: "main"
41+
default: "feature/CCM-10294_standardise-cicd-tests"
42+
skipPlan:
43+
type: boolean
44+
description: Should the plan stage be skipped
45+
default: false
4246

4347
permissions:
4448
id-token: write
@@ -65,6 +69,7 @@ jobs:
6569
--arg targetAccountGroup ${{ inputs.targetAccountGroup }} \
6670
--arg targetComponent ${{ inputs.targetComponent }} \
6771
--arg terraformAction "${{ inputs.terraformAction }}" \
72+
--arg skipPlan "${{ inputs.skipPlan }}" \
6873
'{
6974
"ref": "${{ inputs.internalRef }}",
7075
"inputs": (
@@ -74,7 +79,8 @@ jobs:
7479
"releaseVersion": $releaseVersion,
7580
"targetEnvironment": $targetEnvironment,
7681
"targetAccountGroup": $targetAccountGroup,
77-
"targetComponent": $targetComponent
82+
"targetComponent": $targetComponent,
83+
"skipPlan": $skipPlan
7884
}
7985
)
8086
}')

.github/workflows/reusable_internal_repo_build.yaml

Lines changed: 2 additions & 8 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-
skipPlan:
33-
type: boolean
34-
description: Should the plan stage be skipped
35-
default: false
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 skipPlan ${{ inputs.skipPlan }} \
63-
'{ "ref": "feature/CCM-10294_standardise-cicd-tests",
58+
'{ "ref": "main",
6459
"inputs": {
6560
"releaseVersion", $releaseVersion,
6661
"targetEnvironment", $targetEnvironment,
6762
"targetAccountGroup", $targetAccountGroup,
6863
"targetComponent", $targetComponent,
69-
"terraformAction", $terraformAction,
70-
"skipPlan", $skipPlan
64+
"terraformAction", $terraformAction
7165
}
7266
}')
7367

.github/workflows/stage-4-acceptance.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,4 @@ jobs:
7676
targetAccountGroup: nhs-notify-template-management-dev
7777
targetComponent: sandbox
7878
terraformAction: destroy
79+
skipPlan: true

0 commit comments

Comments
 (0)