From b0b3cba0296a8e8b32be6b9273e71533e4da9590 Mon Sep 17 00:00:00 2001 From: Frits Sweijen Date: Sun, 28 Jan 2024 12:44:16 +0100 Subject: [PATCH] Actually crash on format fail --- .github/workflows/format-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml index 7ce8cdd..918f4b7 100644 --- a/.github/workflows/format-check.yml +++ b/.github/workflows/format-check.yml @@ -15,4 +15,4 @@ jobs: args: . - name: Check for modified files id: git-check - run: echo "modified=$(if git diff-index --quiet HEAD --; then echo "Code formatting inconsistent. Please format using Black."; else echo "Code formatting is consistent with Black."; fi)" >> $GITHUB_OUTPUT + run: if git diff-index --quiet HEAD --; then echo "Code formatting inconsistent. Please format using Black." && exit 1; else echo "Code formatting is consistent with Black."; fi