From 3606dbef38fc3ae28a5aab619673c8def24d1e2f Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Tue, 3 May 2022 18:31:50 -0400 Subject: [PATCH] ci: fix makemigrations echo during pr checks + build --- .github/workflows/build.yml | 3 ++- .github/workflows/ci-run-tests.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f0a99ddd..b7a03827e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -130,7 +130,8 @@ jobs: ./ietf/manage.py check echo "Validating migrations..." if ! (ietf/manage.py makemigrations 2>&1 | grep -q "^No changes detected$") ; then - echo -e "\nModel changes without migrations found." ; exit 1 + echo "Model changes without migrations found." + exit 1 fi echo "Running tests..." ./ietf/manage.py test --settings=settings_sqlitetest diff --git a/.github/workflows/ci-run-tests.yml b/.github/workflows/ci-run-tests.yml index 6037e2413..dc5955d88 100644 --- a/.github/workflows/ci-run-tests.yml +++ b/.github/workflows/ci-run-tests.yml @@ -42,7 +42,8 @@ jobs: ./ietf/manage.py check echo "Validating migrations..." if ! (ietf/manage.py makemigrations 2>&1 | grep -q "^No changes detected$") ; then - echo -e "\nModel changes without migrations found." ; exit 1 + echo "Model changes without migrations found." + exit 1 fi echo "Running tests..." ./ietf/manage.py test --settings=settings_sqlitetest