Skip to content

Commit

Permalink
Actually crash on format fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Frits Sweijen committed Jan 28, 2024
1 parent f099b91 commit b0b3cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b0b3cba

Please sign in to comment.