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 9af9873 commit 9def572Copy full SHA for 9def572
.github/workflows/buildifier.yml
@@ -21,10 +21,11 @@ jobs:
21
- name: Check bazel formatting
22
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
23
with:
24
- extra_args: buildifier --all-files --show-diff-on-failure
25
- - name: Print rectifying command
+ extra_args: buildifier --all-files 2>&1 | tee check_output
+ - 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
0 commit comments