From 3a924fe0d014db6a1e100f658add952fa3452dd8 Mon Sep 17 00:00:00 2001 From: anthony-nhs <121869075+anthony-nhs@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:00:02 +0000 Subject: [PATCH] Fix: [AEA-0000] - disable APIM monitoring for pull request (#1076) ## Summary - Routine Change ### Details - disable APIM monitoring for pull request --- .github/scripts/deploy_api.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/scripts/deploy_api.sh b/.github/scripts/deploy_api.sh index bbc28dc43..0652e3818 100755 --- a/.github/scripts/deploy_api.sh +++ b/.github/scripts/deploy_api.sh @@ -66,6 +66,8 @@ echo "Fixing the spec" title=$(jq -r '.info.title' "${SPEC_PATH}") if [[ "${is_pull_request}" == "true" ]]; then jq --arg title "[PR-${pr_id}] $title" '.info.title = $title' "${SPEC_PATH}" > temp.json && mv temp.json "${SPEC_PATH}" + echo "disabling monitoring for pull request deployment" + jq '."x-nhsd-apim".monitoring = false' "${SPEC_PATH}" > temp.json && mv temp.json "${SPEC_PATH}" fi # Find and replace the specification version number