Skip to content

Commit 3f66c94

Browse files
add force
1 parent d5acfd5 commit 3f66c94

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/scripts/dispatch_internal_repo_workflow.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ while [[ $# -gt 0 ]]; do
108108
tableName="$2"
109109
shift 2
110110
;;
111+
--force) # Force apply flag (optional)
112+
force="$2"
113+
shift 2
114+
;;
111115
*)
112116
echo "[ERROR] Unknown argument: $1"
113117
exit 1
@@ -210,6 +214,10 @@ if [{ -z "$tableName" }]; then
210214
tableName=""
211215
fi
212216

217+
if [[ -z "$force" ]]; then
218+
force=""
219+
fi
220+
213221
echo "==================== Workflow Dispatch Parameters ===================="
214222
echo " infraRepoName: $infraRepoName"
215223
echo " releaseVersion: $releaseVersion"
@@ -230,6 +238,7 @@ echo " boundedContext: $boundedContext"
230238
echo " targetDomain: $targetDomain"
231239
echo " version: $version"
232240
echo " tableName: $tableName"
241+
echo " force: $force"
233242

234243
DISPATCH_EVENT=$(jq -ncM \
235244
--arg infraRepoName "$infraRepoName" \
@@ -250,6 +259,7 @@ DISPATCH_EVENT=$(jq -ncM \
250259
--arg targetDomain "$targetDomain" \
251260
--arg version "$version" \
252261
--arg tableName "$tableName" \
262+
--arg force "$force" \
253263
'{
254264
"ref": "'"$internalRef"'",
255265
"inputs": (
@@ -266,6 +276,7 @@ DISPATCH_EVENT=$(jq -ncM \
266276
(if $targetDomain != "" then { "targetDomain": $targetDomain } else {} end) +
267277
(if $version != "" then { "version": $version } else {} end) +
268278
(if $tableName != "" then { "tableName": $tableName } else {} end) +
279+
(if $force != "" then { "force": $force } else {} end) +
269280
(if $targetAccountGroup != "" then { "targetAccountGroup": $targetAccountGroup } else {} end) +
270281
{
271282
"releaseVersion": $releaseVersion,

.github/workflows/stage-3-build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,5 @@ jobs:
212212
--targetComponent "config" \
213213
--targetAccountGroup "nhs-notify-suppliers-dev" \
214214
--tableName "supplier-config" \
215-
--internalRef "feature/CCM-12444-supplier-config-publishing-workflow"
215+
--internalRef "feature/CCM-12444-supplier-config-publishing-workflow" \
216+
--force "false"

0 commit comments

Comments
 (0)