We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9def572 commit 196b6d7Copy full SHA for 196b6d7
.github/workflows/buildifier.yml
@@ -21,11 +21,8 @@ jobs:
21
- name: Check bazel formatting
22
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
23
with:
24
- extra_args: buildifier --all-files 2>&1 | tee check_output
25
- - name: Report
26
- if: failure()
27
- run: |
28
- sed -ne '/diff --git/,$ p' check_output
29
- echo "In order to format all bazel files, please run:"
30
- echo " bazel run //:buildifier"
31
- exit 1
+ extra_args: >
+ buildifier --all-files 2>&1 ||
+ (
+ echo -e "In order to format all bazel files, please run:\n bazel run //:buildifier"; exit 1
+ )
0 commit comments