Skip to content

Adding env variables in workflow #35

Adding env variables in workflow

Adding env variables in workflow #35

Workflow file for this run

# Cleanup Azure Static Web Apps preview and delete branch
name: PR Closed
on:
pull_request:
types: [closed]
jobs:
cleanup:
runs-on: ubuntu-latest
environment: development
steps:
- name: Close Azure Static Web Apps Preview
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "close"
- name: Delete merged branch
if: github.event.pull_request.merged == true
uses: dawidd6/action-delete-branch@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branches: ${{ github.event.pull_request.head.ref }}