diff --git a/.github/workflows/delete-neon-branch.yml b/.github/workflows/delete-neon-branch.yml index 239113a..e663e9e 100644 --- a/.github/workflows/delete-neon-branch.yml +++ b/.github/workflows/delete-neon-branch.yml @@ -11,5 +11,5 @@ jobs: uses: neondatabase/delete-branch-action@v3.1.3 with: project_id: ${{ secrets.NEON_PROJECT_ID }} - branch: ${{ github.event.pull_request.head.ref }} + branch: preview/pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }} api_key: ${{ secrets.NEON_API_KEY }} \ No newline at end of file diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 728454a..899e7bb 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -39,7 +39,7 @@ jobs: with: project_id: ${{ env.NEON_PROJECT_ID }} # parent: dev # optional (defaults to your primary branch) - branch_name: preview/${{ steps.branch-name.outputs.current_branch }}-${{github.event.pull_request.head.sha}} + branch_name: preview/pr-${{ github.event.number }}-${{ steps.branch-name.outputs.current_branch }} username: ${{ env.NEON_DATABASE_USERNAME }} api_key: ${{ env.NEON_API_KEY }}