Skip to content

Commit d49f52e

Browse files
committed
CCM-11938: try
1 parent 7459198 commit d49f52e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/scripts/dispatch_internal_repo_workflow.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ while [[ $# -gt 0 ]]; do
9292
apimEnvironment="$2"
9393
shift 2
9494
;;
95+
--boundedContext) # Bounded context (optional)
96+
boundedContext="$2"
97+
shift 2
98+
;;
99+
--targetDomain) # Target domain (optional)
100+
targetDomain="$2"
101+
shift 2
102+
;;
95103
*)
96104
echo "[ERROR] Unknown argument: $1"
97105
exit 1
@@ -125,6 +133,14 @@ if [[ -z "$apimEnvironment" ]]; then
125133
apimEnvironment=""
126134
fi
127135

136+
if [[ -z "$boundedContext" ]]; then
137+
boundedContext=""
138+
fi
139+
140+
if [[ -z "$targetDomain" ]]; then
141+
targetDomain=""
142+
fi
143+
128144
echo "==================== Workflow Dispatch Parameters ===================="
129145
echo " infraRepoName: $infraRepoName"
130146
echo " releaseVersion: $releaseVersion"
@@ -141,6 +157,8 @@ echo " targetProject: $targetProject"
141157
echo " runId: $runId"
142158
echo " buildSandbox: $buildSandbox"
143159
echo " apimEnvironment: $apimEnvironment"
160+
echo " boundedContext: $boundedContext"
161+
echo " targetDomain: $targetDomain"
144162

145163
DISPATCH_EVENT=$(jq -ncM \
146164
--arg infraRepoName "$infraRepoName" \
@@ -157,6 +175,8 @@ DISPATCH_EVENT=$(jq -ncM \
157175
--arg runId "$runId" \
158176
--arg buildSandbox "$buildSandbox" \
159177
--arg apimEnvironment "$apimEnvironment" \
178+
--arg boundedContext "$boundedContext" \
179+
--arg targetDomain "$targetDomain" \
160180
'{
161181
"ref": "'"$internalRef"'",
162182
"inputs": (
@@ -171,6 +191,8 @@ DISPATCH_EVENT=$(jq -ncM \
171191
(if $runId != "" then { "runId": $runId } else {} end) +
172192
(if $buildSandbox != "" then { "buildSandbox": $buildSandbox } else {} end) +
173193
(if $apimEnvironment != "" then { "apimEnvironment": $apimEnvironment } else {} end) +
194+
(if $boundedContext != "" then { "boundedContext": $boundedContext } else {} end) +
195+
(if $targetDomain != "" then { "targetDomain": $targetDomain } else {} end) +
174196
{ "targetEnvironment": $targetEnvironment } +
175197
{ "targetAccountGroup": $targetAccountGroup }
176198
)

0 commit comments

Comments
 (0)