From ddf092c563f84885412ced0a6a741862edabddb2 Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Fri, 6 Sep 2024 11:06:04 -0500 Subject: [PATCH] correct the pr slot name pattern in cleanup job --- .github/workflows/pr-cleanup.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-cleanup.yml b/.github/workflows/pr-cleanup.yml index 8375bb9..1575264 100644 --- a/.github/workflows/pr-cleanup.yml +++ b/.github/workflows/pr-cleanup.yml @@ -4,12 +4,12 @@ on: pull_request: types: [closed] -concurrency: +concurrency: group: ci-${{ github.event.number }} cancel-in-progress: true env: - SLOT_NAME: preview-${{ github.event.number }} + SLOT_NAME: pr-${{ github.event.number }} jobs: delete-slot: @@ -20,7 +20,7 @@ jobs: uses: azure/login@v1 with: creds: ${{ secrets.AZURE_CREDENTIALS }} - + - name: Delete slot on staging site run: az webapp deployment slot delete --resource-group ${{ vars.AZURE_RESOURCE_GROUP }} --name ${{ vars.AZURE_WEBAPP_NAME}} --slot ${{ env.SLOT_NAME }} @@ -33,4 +33,4 @@ jobs: with: environment: "PR #${{ github.event.number }}" token: ${{ secrets.GITHUB_TOKEN }} - onlyRemoveDeployments: true \ No newline at end of file + onlyRemoveDeployments: true