diff --git a/.github/workflows/delete-neon-branch.yml b/.github/workflows/delete-neon-branch.yml index cbfb58807..7a5faba0c 100644 --- a/.github/workflows/delete-neon-branch.yml +++ b/.github/workflows/delete-neon-branch.yml @@ -21,7 +21,7 @@ jobs: id: get_branch_id # list all branches and filter by name run: | - branch_id=$(curl --silent \ + branch_id=$(curl --silent --fail-with-body \ "https://console.neon.tech/api/v2/projects/${{ secrets.NEON_PROJECT_ID }}/branches" \ --header "Accept: application/json" \ --header "Content-Type: application/json" \ @@ -32,7 +32,7 @@ jobs: echo "branch_id=${branch_id}" >> $GITHUB_OUTPUT - name: Delete Neon Branch - uses: neondatabase/delete-branch-action@v2 + uses: neondatabase/delete-branch-action@v3 with: project_id: ${{ secrets.NEON_PROJECT_ID }} branch_id: ${{ steps.get_branch_id.outputs.branch_id }} diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index e6743d36f..65cab0156 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -21,7 +21,7 @@ jobs: uses: actions/checkout@v3 - name: Neon Database Create Branch Action - uses: neondatabase/create-branch-action@v3 + uses: neondatabase/create-branch-action@v4 id: create_branch with: project_id: ${{ secrets.NEON_PROJECT_ID }}