Skip to content

Commit 3606dbe

Browse files
authored
ci: fix makemigrations echo during pr checks + build
1 parent 5598762 commit 3606dbe

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ jobs:
130130
./ietf/manage.py check
131131
echo "Validating migrations..."
132132
if ! (ietf/manage.py makemigrations 2>&1 | grep -q "^No changes detected$") ; then
133-
echo -e "\nModel changes without migrations found." ; exit 1
133+
echo "Model changes without migrations found."
134+
exit 1
134135
fi
135136
echo "Running tests..."
136137
./ietf/manage.py test --settings=settings_sqlitetest

.github/workflows/ci-run-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
./ietf/manage.py check
4343
echo "Validating migrations..."
4444
if ! (ietf/manage.py makemigrations 2>&1 | grep -q "^No changes detected$") ; then
45-
echo -e "\nModel changes without migrations found." ; exit 1
45+
echo "Model changes without migrations found."
46+
exit 1
4647
fi
4748
echo "Running tests..."
4849
./ietf/manage.py test --settings=settings_sqlitetest

0 commit comments

Comments
 (0)