Skip to content

Commit

Permalink
FIX: export secret to the migration step only
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbrandao committed Mar 27, 2024
1 parent 67a6c2e commit c537d6b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ jobs:
migrate_production:
runs-on: ubuntu-latest
steps:
- name: Set Github secrets as env vars
env:
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}

- name: Checkout Repository
uses: actions/checkout@v3

Expand All @@ -27,3 +23,5 @@ jobs:

- name: Generate and Migrate
run: npm run db:generate && npm run db:migrate deploy
env:
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}

0 comments on commit c537d6b

Please sign in to comment.