From 52e0906ce05d9546e5835ac9d6e1fa0b9fc2cb35 Mon Sep 17 00:00:00 2001 From: Angela Tran Date: Fri, 24 May 2024 19:07:50 +0000 Subject: [PATCH] ci: add step to run helper script and check output fail if expected message is not present ("No changes detected") --- .github/workflows/check-makemigrations.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/check-makemigrations.yml b/.github/workflows/check-makemigrations.yml index 3eab290d2..f79537f60 100644 --- a/.github/workflows/check-makemigrations.yml +++ b/.github/workflows/check-makemigrations.yml @@ -27,3 +27,12 @@ jobs: - name: Install Python dependencies run: pip install -e .[dev,test] + + - name: Run ./bin/makemigrations.sh + run: | + if ./bin/makemigrations.sh | grep -q 'No changes detected'; + then + exit 0; + else + exit 1; + fi