From 56d96dea9d3032f1fccc9b479419dd155ea4efdf Mon Sep 17 00:00:00 2001 From: Harmanpreet-Microsoft Date: Tue, 28 Oct 2025 11:44:03 +0530 Subject: [PATCH 1/4] Disable specific triggers in deploy workflow Comment out workflow_run settings for branches and schedule. --- .github/workflows/deploy.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 73ed1d94..4fcae355 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,14 +3,14 @@ name: Deploy-Test-Cleanup Pipeline on: workflow_run: workflows: ["Build Docker and Optional Push"] - types: - - completed - branches: - - main - - dev - - demo - schedule: - - cron: '0 5,17 * * *' # Runs at 5:00 AM and 5:00 PM GMT + # types: + # - completed + # branches: + # - main + # - dev + # - demo + # schedule: + # - cron: '0 5,17 * * *' # Runs at 5:00 AM and 5:00 PM GMT workflow_dispatch: env: From ae4f96aff7e821a9cf495403d87727ac24f2a37b Mon Sep 17 00:00:00 2001 From: Harmanpreet-Microsoft Date: Tue, 28 Oct 2025 11:45:35 +0530 Subject: [PATCH 2/4] Update deployment email body for CodeMod process --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4fcae355..a356762a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -427,7 +427,7 @@ jobs: EMAIL_BODY=$(cat <Dear Team,

We would like to inform you that the DocGen Deployment Automation process has encountered an issue and has failed to complete successfully.

Build URL: ${RUN_URL}

Please investigate the matter at your earliest convenience.

Best regards,
Your Automation Team

" + "body": "

Dear Team,

We would like to inform you that the CodeMod Deployment Automation process has encountered an issue and has failed to complete successfully.

Build URL: ${RUN_URL}

Please investigate the matter at your earliest convenience.

Best regards,
Your Automation Team

" } EOF ) From 3f8d72e8a5421a277f4f9c4b193cd344f598b049 Mon Sep 17 00:00:00 2001 From: Harmanpreet-Microsoft Date: Tue, 28 Oct 2025 11:47:08 +0530 Subject: [PATCH 3/4] Remove GPT_MIN_CAPACITY from deploy workflow Removed GPT_MIN_CAPACITY export from deployment script. --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a356762a..dd5074c0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,7 +43,6 @@ jobs: export AZURE_TENANT_ID=${{ secrets.AZURE_TENANT_ID }} export AZURE_CLIENT_SECRET=${{ secrets.AZURE_CLIENT_SECRET }} export AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}" - export GPT_MIN_CAPACITY="${{ env.GPT_MIN_CAPACITY }}" export AZURE_REGIONS="${{ vars.AZURE_REGIONS }}" chmod +x scripts/checkquota.sh if ! scripts/checkquota.sh; then @@ -141,7 +140,6 @@ jobs: --parameters \ solutionName="${{ env.SOLUTION_PREFIX }}" \ azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \ - capacity=${{ env.GPT_MIN_CAPACITY }} \ imageVersion="${IMAGE_TAG}" \ createdBy="Pipeline" \ tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}" From 29d05d860c67c034b59d804c235f036b1bb1be52 Mon Sep 17 00:00:00 2001 From: Harmanpreet-Microsoft Date: Tue, 28 Oct 2025 12:24:40 +0530 Subject: [PATCH 4/4] Uncomment workflow_run settings in deploy.yml --- .github/workflows/deploy.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dd5074c0..ca09759b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,14 +3,14 @@ name: Deploy-Test-Cleanup Pipeline on: workflow_run: workflows: ["Build Docker and Optional Push"] - # types: - # - completed - # branches: - # - main - # - dev - # - demo - # schedule: - # - cron: '0 5,17 * * *' # Runs at 5:00 AM and 5:00 PM GMT + types: + - completed + branches: + - main + - dev + - demo + schedule: + - cron: '0 5,17 * * *' # Runs at 5:00 AM and 5:00 PM GMT workflow_dispatch: env: