forked from nkdAgility/azure-devops-migration-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 847 Bytes
/
close-pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Azure Static Web App PR Cleanup
on:
pull_request:
types: [closed]
jobs:
pr_cleanup:
runs-on: ubuntu-latest
if: ${{ !(github.event.pull_request.head.repo.fork) }}
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.NKDAGILITY_BOT_APP_ID }}
private-key: ${{ secrets.NKDAGILITY_BOT_CLIENTSECRET }}
- name: Clean up pull request environment
uses: Azure/static-web-apps-deploy@v1
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
repo_token: ${{ secrets.GITHUB_TOKEN }}