Skip to content

Commit f1ba03f

Browse files
committed
try sandbox
1 parent ded557b commit f1ba03f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/cicd-3-deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ on:
4141
default: internal-dev
4242
options:
4343
- internal-dev
44+
- internal-dev-sandbox
4445
- int
4546
- prod
4647
build_sandbox:

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ jobs:
167167
exit 1
168168
fi
169169
170+
if [[ "${apim_environment}"" == "internal-dev-sandbox" && "${build_sandbox}" != "true" ]]; then
171+
echo "[ERROR] APIM environment 'internal-dev-sandbox' requires build_sandbox to be true."
172+
exit 1
173+
fi
174+
170175
if [[ "$is_release" == "true" ]]; then
171176
oas_asset_pattern="^api-oas-specification-${apim_environment}-${source_value}-.*\.zip$"
172177
if ! echo "$release_json" | jq -r '.assets[].name' | grep -qx "$oas_asset_pattern"; then

0 commit comments

Comments
 (0)