Skip to content

fix: delete-db-branch action #2

fix: delete-db-branch action

fix: delete-db-branch action #2

Workflow file for this run

name: Clean up after Pull Request
on:
pull_request:
types: [closed]
jobs:
delete-db-branch:
runs-on: ubuntu-latest
steps:
- name: Get branch name
id: branch_name
uses: tj-actions/branch-names@v8
- name: Delete Neon Branch
uses: neondatabase/[email protected]
with:
project_id: ${{ secrets.NEON_PROJECT_ID }}
branch_name: web/pr-${{ github.event.number}}-${{ steps.branch_name.outputs.current_branch }}
api_key: ${{ secrets.NEON_API_KEY }}