Skip to content

Commit

Permalink
Update neondatabase/create-branch-action action to v4 (#67)
Browse files Browse the repository at this point in the history
* Update neondatabase/create-branch-action action to v4

* fixup

Signed-off-by: Matteo Collina <[email protected]>

* fixup

Signed-off-by: Matteo Collina <[email protected]>

* fixup

Signed-off-by: Matteo Collina <[email protected]>

---------

Signed-off-by: Matteo Collina <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matteo Collina <[email protected]>
  • Loading branch information
renovate[bot] and mcollina authored Sep 5, 2023
1 parent 45b6c2a commit d753b7e
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/platformatic-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,12 @@ jobs:
pull_sha=$(jq --raw-output .pull_request.base.sha "$GITHUB_EVENT_PATH")
echo "pull_sha=${pull_sha}" >> $GITHUB_OUTPUT
echo $pull_sha
- uses: neondatabase/delete-branch-by-name-action@main
- uses: neondatabase/create-branch-action@v4
with:
project_id: ${{ secrets.NEON_PROJECT_ID }}
branch_name: ${{ steps.get_pull_number.outputs.pull_sha }}
api_key: ${{ secrets.NEON_API_KEY }}
- run: sleep 10
- uses: neondatabase/create-branch-action@v2
with:
project_id: ${{ secrets.NEON_PROJECT_ID }}
branch_name: ${{ steps.get_pull_number.outputs.pull_sha }}
api_key: ${{ secrets.NEON_API_KEY }}
username: ${{ secrets.DBUSER }}
Password: ${{ secrets.DBPASSWORD }}
id: create-branch
- name: Get DATABASE_URL
run: echo DATABASE_URL=${{ steps.create-branch.outputs.db_url}}/neondb
- name: Deploy project
uses: platformatic/onestep@latest
with:
Expand All @@ -56,4 +46,4 @@ jobs:
PLT_ADMIN_SECRET: ${{ secrets.PLT_ADMIN_SECRET }}
PLT_LOCK: ${{ vars.PLT_LOCK }}
PLT_LEADER_POLL: ${{ vars.PLT_LEADER_POLL }}
DATABASE_URL: ${{ steps.create-branch.outputs.db_url}}/neondb
DATABASE_URL: ${{ steps.create-branch.outputs.db_url }}

0 comments on commit d753b7e

Please sign in to comment.