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