From c537d6b62063d91551f18b00ea18623491441a92 Mon Sep 17 00:00:00 2001 From: Nicolas Brandao Date: Wed, 27 Mar 2024 11:32:34 -0300 Subject: [PATCH] FIX: export secret to the migration step only --- .github/workflows/ci-migrate.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-migrate.yml b/.github/workflows/ci-migrate.yml index 3500324..eb2c3cd 100644 --- a/.github/workflows/ci-migrate.yml +++ b/.github/workflows/ci-migrate.yml @@ -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 @@ -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 }}