Skip to content

chore: bump the prisma group with 2 updates #185

chore: bump the prisma group with 2 updates

chore: bump the prisma group with 2 updates #185

name: CD Azure (close preview)
on:
pull_request_target:
types: [closed]
branches:
- main
permissions:
pull-requests: write
id-token: write
jobs:
close_pr_preview:
name: Close PR preview
runs-on: ubuntu-latest
steps:
- name: Delete WebApp environment
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_MANGO_PEBBLE_0224C3803 }}
action: 'close'
- name: Login to Azure
uses: Azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Delete Function App
run: az functionapp delete --name jabref-function-${{ github.event.pull_request.number }} --resource-group JabRefOnline
- name: Delete test database
run: az postgres flexible-server db delete --server-name jabrefdb --resource-group JabRefOnline --database-name postgres_test_${{ github.event.pull_request.number }} -y