diff --git a/.github/workflows/azure-preview-env-deploy.yml b/.github/workflows/azure-preview-env-deploy.yml index f8233025ee..7962f09ca1 100644 --- a/.github/workflows/azure-preview-env-deploy.yml +++ b/.github/workflows/azure-preview-env-deploy.yml @@ -1,4 +1,4 @@ -name: Deploy Azure Preview Environment +name: Azure - Deploy Preview Environment # **What it does**: Build and deploy to an Azure preview environment # **Why we have it**: It's our preview environment deploy mechanism, only applicable to docs-internal diff --git a/.github/workflows/azure-preview-env-destroy.yml b/.github/workflows/azure-preview-env-destroy.yml index 8f41651998..cdd46b960a 100644 --- a/.github/workflows/azure-preview-env-destroy.yml +++ b/.github/workflows/azure-preview-env-destroy.yml @@ -1,4 +1,4 @@ -name: Destroy Azure Preview Env +name: Azure - Destroy Preview Env # **What it does**: Destroys resources associated with a PRs Azure preview environment # **Why we have it**: Closed PRs don't need apps @@ -13,6 +13,7 @@ on: jobs: destory-azure-preview-env: name: Destroy + if: ${{ github.repository == 'github/docs-internal' }} runs-on: ubuntu-latest timeout-minutes: 5 env: @@ -44,7 +45,7 @@ jobs: - name: 'Get full app name' id: full-app-name run: | - FULL_APP_NAME=$(az webapp list -g ${{ env.RESOURCE_GROUP }} --query "[?tags.DocsAppName == '${{ env.APP_NAME }}'})].name | [0]") + FULL_APP_NAME=$(az webapp list -g ${{ env.RESOURCE_GROUP }} --query "[?tags.DocsAppName == '${{ env.APP_NAME }}'].name | [0]") echo "::set-output name=result::${FULL_APP_NAME}" # Delete web app (which will also delete the App Service plan)