Skip to content

Commit 3a924fe

Browse files
authored
Fix: [AEA-0000] - disable APIM monitoring for pull request (#1076)
## Summary - Routine Change ### Details - disable APIM monitoring for pull request
1 parent 7d3ec5e commit 3a924fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/scripts/deploy_api.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ echo "Fixing the spec"
6666
title=$(jq -r '.info.title' "${SPEC_PATH}")
6767
if [[ "${is_pull_request}" == "true" ]]; then
6868
jq --arg title "[PR-${pr_id}] $title" '.info.title = $title' "${SPEC_PATH}" > temp.json && mv temp.json "${SPEC_PATH}"
69+
echo "disabling monitoring for pull request deployment"
70+
jq '."x-nhsd-apim".monitoring = false' "${SPEC_PATH}" > temp.json && mv temp.json "${SPEC_PATH}"
6971
fi
7072

7173
# Find and replace the specification version number

0 commit comments

Comments
 (0)