diff --git a/.github/workflows/migration-db-check.yml b/.github/workflows/migration-db-check.yml index 96f479c..3f53553 100644 --- a/.github/workflows/migration-db-check.yml +++ b/.github/workflows/migration-db-check.yml @@ -37,7 +37,8 @@ jobs: - name: Collect the migration diff continue-on-error: false run: | - yarn prisma migrate diff --from-url "$PROD_DATABASE_URL" --to-url "mysql://root:root@127.0.0.1:3306/db" --script >> migration-message.txt + set -e + yarn prisma migrate diff --from-url "$PROD_DATABASE_URL" --to-url "mysql://root:root@127.0.0.1:3306/db" --script # echo "The following migration will be applied to the production database:" >> migration-message.txt # echo "" >> migration-message.txt # echo "\`\`\`sql" >> migration-message.txt