diff --git a/.github/workflows/migrations.yml b/.github/workflows/migrations.yml index 9386f51c1af..f151a28893f 100644 --- a/.github/workflows/migrations.yml +++ b/.github/workflows/migrations.yml @@ -26,4 +26,4 @@ jobs: - run: npm ci - run: npm run setup:db:seed - name: check no pending migrations (migration is in db) - run: npx mikro-orm migration:pending + run: test $(npx mikro-orm migration:pending | grep -c "Migration") -eq 0