Skip to content

feat: profiles

feat: profiles #15

Workflow file for this run

name: Cleanup
on:
pull_request:
types:
- closed
jobs:
cleanup:
name: PR
runs-on: ubuntu-latest
environment: Preview
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
env:
NEON_API_KEY: ${{ secrets.NEON_API_KEY }}
NEON_PROJECT_ID: ${{ secrets.NEON_PROJECT_ID }}
steps:
- name: Get branch name
id: branch_name
uses: tj-actions/branch-names@v8
- name: Delete Neon Branch
uses: neondatabase/delete-branch-action@v3
with:
project_id: ${{ vars.NEON_PROJECT_ID }}
branch: preview/pr-${{ github.event.number }}-${{ steps.branch_name.outputs.current_branch }}
api_key: ${{ secrets.NEON_API_KEY }}