Browse Source

build(github): Fix migration check always failing (#19452)

Order of operations causing migration check to always exit with an error.
Billy Vong 4 years ago
parent
commit
610098049c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/python.yml

+ 1 - 1
.github/workflows/python.yml

@@ -101,4 +101,4 @@ jobs:
             PGPASSWORD: postgres
           run: |
             # Below will exit with non-zero status if model changes are missing migrations
-            sentry django makemigrations -n ci_test --check --dry-run --no-input || echo '::error::Error: Migration required -- to generate a migration, run `sentry django makemigrations -n <some_name>`' && exit 1
+            sentry django makemigrations -n ci_test --check --dry-run --no-input || (echo '::error::Error: Migration required -- to generate a migration, run `sentry django makemigrations -n <some_name>`' && exit 1)