Skip to content

Commit

Permalink
chore: add a db reset workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ydennisy committed Apr 1, 2024
1 parent 8d585ef commit 034c591
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/db-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
version: latest

- run: supabase link --project-ref $SUPABASE_PROJECT_ID
- run: supabase db push --debug
- run: supabase db push
26 changes: 26 additions & 0 deletions .github/workflows/db-reset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "[DB] Run full reset"

on:
workflow_dispatch: {}

defaults:
run:
working-directory: backend

jobs:
migration:
runs-on: ubuntu-latest
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }}
SUPABASE_PROJECT_ID: fqdoflohofjgariilbzh

steps:
- uses: actions/checkout@v4

- uses: supabase/setup-cli@v1
with:
version: latest

- run: supabase link --project-ref $SUPABASE_PROJECT_ID
- run: supabase db reset

0 comments on commit 034c591

Please sign in to comment.