We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63e104a commit b8582e3Copy full SHA for b8582e3
1 file changed
.github/workflows/deploy-supplier-api.yaml
@@ -155,10 +155,14 @@ jobs:
155
# --- Cross-validation (only when deploying both) ---
156
157
if [[ "$deploy_backend" == "true" && "$deploy_proxy" == "true" ]]; then
158
- if [[ ("$backend_account_group" == "prod") != ("$apim_environment" == "prod") ]]; then
159
- echo "[ERROR] PROD backend and PROD APIM can only be deployed together."
160
- exit 1
161
- fi
+ case "${backend_account_group}:${apim_environment}" in
+ dev:internal-dev|nonprod:int|prod:prod) ;;
+ *)
+ echo "[ERROR] Mismatched backend/APIM pair: '${backend_account_group}' and '${apim_environment}'."
162
+ echo "[ERROR] Valid combinations: dev/internal-dev, nonprod/int, prod/prod."
163
+ exit 1
164
+ ;;
165
+ esac
166
fi
167
168
build_artifact_version=""
0 commit comments