We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4ad789 commit 79bf147Copy full SHA for 79bf147
1 file changed
.github/workflows/migrations.yml
@@ -39,4 +39,9 @@ jobs:
39
working-directory: ./packages/db
40
env:
41
DATABASE_URL: ${{ github.ref == 'refs/heads/main' && secrets.DATABASE_URL || github.ref == 'refs/heads/dev' && secrets.DEV_DATABASE_URL || secrets.STAGING_DATABASE_URL }}
42
- run: bunx drizzle-kit migrate --config=./drizzle.config.ts
+ run: |
43
+ if [ "${{ github.ref }}" = "refs/heads/dev" ]; then
44
+ bunx drizzle-kit push --config=./drizzle.config.ts --force
45
+ else
46
+ bunx drizzle-kit migrate --config=./drizzle.config.ts
47
+ fi
0 commit comments