From 9b0f6e84d0a9e98f245fa8e39b14288750c11821 Mon Sep 17 00:00:00 2001 From: Diego Artiles Date: Sat, 14 Sep 2024 15:09:05 -0300 Subject: [PATCH] chore(Root): Update Supabase CI workflow to dry-run database push --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e1b4f5..37f1083 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,10 +42,6 @@ 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 @@ -53,6 +49,9 @@ jobs: 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