@@ -104,6 +104,14 @@ while [[ $# -gt 0 ]]; do
104104 version=" $2 "
105105 shift 2
106106 ;;
107+ --tableName) # Table name (optional)
108+ tableName=" $2 "
109+ shift 2
110+ ;;
111+ --force) # Force apply flag (optional)
112+ force=" $2 "
113+ shift 2
114+ ;;
107115 * )
108116 echo " [ERROR] Unknown argument: $1 "
109117 exit 1
@@ -202,6 +210,14 @@ if [[ -z "$version" ]]; then
202210 version=" "
203211fi
204212
213+ if [{ -z " $tableName " }]; then
214+ tableName=" "
215+ fi
216+
217+ if [[ -z " $force " ]]; then
218+ force=" "
219+ fi
220+
205221echo " ==================== Workflow Dispatch Parameters ===================="
206222echo " infraRepoName: $infraRepoName "
207223echo " releaseVersion: $releaseVersion "
@@ -221,6 +237,8 @@ echo " apimEnvironment: $apimEnvironment"
221237echo " boundedContext: $boundedContext "
222238echo " targetDomain: $targetDomain "
223239echo " version: $version "
240+ echo " tableName: $tableName "
241+ echo " force: $force "
224242
225243DISPATCH_EVENT=$( jq -ncM \
226244 --arg infraRepoName " $infraRepoName " \
@@ -240,6 +258,8 @@ DISPATCH_EVENT=$(jq -ncM \
240258 --arg boundedContext " $boundedContext " \
241259 --arg targetDomain " $targetDomain " \
242260 --arg version " $version " \
261+ --arg tableName " $tableName " \
262+ --arg force " $force " \
243263 ' {
244264 "ref": "' " $internalRef " ' ",
245265 "inputs": (
@@ -255,6 +275,8 @@ DISPATCH_EVENT=$(jq -ncM \
255275 (if $boundedContext != "" then { "boundedContext": $boundedContext } else {} end) +
256276 (if $targetDomain != "" then { "targetDomain": $targetDomain } else {} end) +
257277 (if $version != "" then { "version": $version } else {} end) +
278+ (if $tableName != "" then { "tableName": $tableName } else {} end) +
279+ (if $force != "" then { "force": $force } else {} end) +
258280 (if $targetAccountGroup != "" then { "targetAccountGroup": $targetAccountGroup } else {} end) +
259281 {
260282 "releaseVersion": $releaseVersion,
0 commit comments