Fix broken links and site nav glitch, misc cleanup #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delete a preview environment | |
on: | |
pull_request: | |
types: [closed] | |
concurrency: | |
group: ci-${{ github.event.number }} | |
cancel-in-progress: true | |
env: | |
SLOT_NAME: preview-${{ github.event.number }} | |
jobs: | |
delete-slot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Log into Azure CLI with service principal | |
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 $SLOT_NAME | |
delete-deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete Deployment Environment | |
uses: strumwolf/delete-deployment-environment@v2 | |
with: | |
environment: "PR #${{ github.event.number }}" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
onlyRemoveDeployments: true |