From 48ff54324a808a217195df0f25148a92a7ebfa85 Mon Sep 17 00:00:00 2001 From: Eric Cabrel TIOGO Date: Sun, 1 Sep 2024 19:16:13 +0200 Subject: [PATCH] fix: migration diff step n tests --- .github/workflows/migration-db-check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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