From 9e66cf117b1702baa32e2f55826aa81e5f9d4169 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Wed, 9 Oct 2024 13:32:50 +0100 Subject: [PATCH] Update to ensure $AzureSitesEnvironment cleanup --- .github/workflows/close-pr.yaml | 1 + .github/workflows/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/close-pr.yaml b/.github/workflows/close-pr.yaml index 3039122c..1fba9f87 100644 --- a/.github/workflows/close-pr.yaml +++ b/.github/workflows/close-pr.yaml @@ -19,6 +19,7 @@ jobs: with: azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }} action: 'close' + deployment_environment: canary-${{ github.event.pull_request.number }} app_location: '' skip_app_build: true skip_api_build: true diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 43ba06c5..eea1a910 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -134,7 +134,7 @@ jobs: $WingetApplicationId = "nkdagility.azure-devops-migration-tools.Canary"; $docs_deploy_folder = "./azure-devops-migration-tools/canary/$branchSafeName" $docs_baseURL = "/learn/azure-devops-migration-tools/canary/$branchSafeName" - $AzureSitesEnvironment = "$branchSafeName" + $AzureSitesEnvironment = "canary-${{ github.event.pull_request.number }}" $RunRelease = 'false' } }