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.
This commit is contained in:
dal 2025-01-03 16:39:26 -07:00
parent 501b8031a4
commit c23ca4c36e
1 changed files with 1 additions and 0 deletions

View File

@ -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 }}