Skip to content

Commit

Permalink
chore: remove supabase schema sync on preview branches (#4086)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariojsnunes authored Jan 17, 2025
1 parent 0166573 commit 224814a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ What kind of change does this PR introduce?
_Describe the new behaviour_
_If useful, provide screenshot or capture to highlight main changes_

## Does this PR introduce a breaking change?
## Does this PR introduce a DB Schema Change or Migration?

- [ ] Yes
- [ ] No
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/pr-preview-fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,18 @@ jobs:
# pull the repo from the pull request source, not the default local repo
ref: ${{ github.event.pull_request.head.sha }}

- name: Install supabase CLI
uses: supabase/setup-cli@v1
with:
version: 2.6.8
# Commented out so there are no schema conflicts between preview branches.
# A better solution would be to use Supabase Branching: https://supabase.com/docs/guides/deployment/branching
# - name: Install supabase CLI
# uses: supabase/setup-cli@v1
# with:
# version: 2.6.8

- name: Link Supabase project
run: supabase link --project-ref $SUPABASE_PROJECT_ID
# - name: Link Supabase project
# run: supabase link --project-ref $SUPABASE_PROJECT_ID

- name: Push Supabase DB
run: supabase db push
# - name: Push Supabase DB
# run: supabase db push

- name: Install Fly CLI
run: |
Expand Down

0 comments on commit 224814a

Please sign in to comment.