Use prisma to connect to dynamic neon postgres databases #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Preview Environment | |
env: | |
VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
on: | |
pull_request: | |
types: [opened, synchronize, closed] | |
branches: | |
- main | |
jobs: | |
deploy: | |
if: ${{ github.event.action == 'opened' || github.event.action == 'synchronize' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: snaplet/[email protected] | |
delete: | |
if: ${{ github.event.action == 'closed' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: snaplet/[email protected] | |
with: | |
delete: true |