Skip to content

Commit

Permalink
correct the pr slot name pattern in cleanup job
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHess committed Sep 6, 2024
1 parent 6f868ed commit ddf092c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

Expand All @@ -33,4 +33,4 @@ jobs:
with:
environment: "PR #${{ github.event.number }}"
token: ${{ secrets.GITHUB_TOKEN }}
onlyRemoveDeployments: true
onlyRemoveDeployments: true

0 comments on commit ddf092c

Please sign in to comment.