Skip to content

Commit 6c4c5c1

Browse files
committed
fix checks
1 parent 50ebe1b commit 6c4c5c1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/deploy-supplier-api.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ jobs:
118118
119119
if [[ "$deploy_backend" == "true" && "$deploy_proxy" == "true" ]]; then
120120
case "${backend_account_group}:${apim_environment}" in
121-
dev:internal-dev|nonprod:int|prod:prod) ;;
121+
dev:internal-dev|dev:internal-dev-sandbox|nonprod:int|prod:prod) ;;
122122
*)
123123
echo "[ERROR] Mismatched backend/APIM pair: '${backend_account_group}' and '${apim_environment}'."
124-
echo "[ERROR] Valid combinations: dev/internal-dev, nonprod/int, prod/prod."
124+
echo "[ERROR] Valid combinations: dev/internal-dev, dev/internal-dev-sandbox, nonprod/int, prod/prod."
125125
exit 1
126126
;;
127127
esac
@@ -168,8 +168,8 @@ jobs:
168168
exit 1
169169
fi
170170
171-
if [[ "${apim_environment}"" == "internal-dev-sandbox" && "${build_sandbox}" !== "true" ]]; then
172-
echo "[ERROR] APIM environment 'internal-dev-sandbox' requires build_sandbox to be true."
171+
if [[ "$apim_environment" == "internal-dev-sandbox" && "$build_sandbox" != "true" ]]; then
172+
echo "[ERROR] build_sandbox must be true when apim_environment is internal-dev-sandbox."
173173
exit 1
174174
fi
175175

0 commit comments

Comments
 (0)