From 6139784208fccf695a32d6c40e882e2e515b0a8c Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelwahab Date: Thu, 1 Feb 2024 19:31:08 +0200 Subject: [PATCH] Update branch names in workflows --- .github/workflows/delete-neon-branch.yml | 2 +- .github/workflows/deploy-preview.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }}