Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 886a615

Browse files
authored
fail black_formatter step if there are suggestions (#768)
1 parent a2ac6a3 commit 886a615

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/formatter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ jobs:
2121
uses: reviewdog/action-suggester@v1
2222
with:
2323
tool_name: blackfmt
24+
- name: Fail if there are formatting suggestions
25+
if: steps.black_formatter.outputs.is_formatted == 'true'
26+
run: exit 1

0 commit comments

Comments
 (0)