From c23ca4c36e6bba86de14b6b35c569e10187def5c Mon Sep 17 00:00:00 2001 From: dal Date: Fri, 3 Jan 2025 16:39:26 -0700 Subject: [PATCH] Update GitHub Actions workflow to set working directory for migrations - Added a working-directory specification for the 'Run migrations' step in the GitHub Actions workflow, ensuring that Diesel migrations are executed in the correct context within the './api' directory. This change enhances the reliability of the migration process during deployment. --- .github/workflows/porter_app_staging_3155.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/porter_app_staging_3155.yml b/.github/workflows/porter_app_staging_3155.yml index 4691c7467..7424abfc8 100644 --- a/.github/workflows/porter_app_staging_3155.yml +++ b/.github/workflows/porter_app_staging_3155.yml @@ -40,6 +40,7 @@ jobs: aws s3 cp ${{ secrets.CERT_S3_URL }} ~/.postgresql/root.crt - name: Run migrations + working-directory: ./api run: diesel migration run env: DATABASE_URL: ${{ secrets.DB_URL }}