Skip to content

Commit

Permalink
chore(Root): Update Supabase CI workflow to dry-run database push
Browse files Browse the repository at this point in the history
  • Loading branch information
dartilesm committed Sep 14, 2024
1 parent 47b64fd commit 9b0f6e8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,16 @@ jobs:
push:
name: Push to Supabase
runs-on: ubuntu-latest
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_STAGING_DB_PASSWORD }}
SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_STAGING_PROJECT_ID }}

steps:
- uses: actions/checkout@v4
- uses: supabase/setup-cli@v1
with:
version: latest

- run: supabase login
- run: supabase link --project-ref $SUPABASE_PROJECT_ID --debug
- run: supabase db push
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_STAGING_PROJECT_ID }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_STAGING_DB_PASSWORD }}
- run: supabase db push --dry-run

0 comments on commit 9b0f6e8

Please sign in to comment.