Skip to content

Commit

Permalink
build(database): target the pr branch when applying migrations (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
tericcabrel committed Jun 23, 2024
1 parent e217e89 commit d569a94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/migration-db-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
uses: planetscale/setup-pscale-action@v1

- name: Set database branch name
run: echo "PSCALE_BRANCH_NAME=$(echo ${{ github.ref_name }} | tr -cd '[:alnum:]-'| tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
run: |
echo "${{ github.event.pull_request.base.ref }}"
echo "PSCALE_BRANCH_NAME=$(echo ${{ github.event.pull_request.base.ref }} | tr -cd '[:alnum:]-'| tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Get the deploy request number in development branch
run: |
Expand Down

0 comments on commit d569a94

Please sign in to comment.