Skip to content

Commit 9def572

Browse files
committed
CI: make reporting better
1 parent 9af9873 commit 9def572

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/buildifier.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ jobs:
2121
- name: Check bazel formatting
2222
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
2323
with:
24-
extra_args: buildifier --all-files --show-diff-on-failure
25-
- name: Print rectifying command
24+
extra_args: buildifier --all-files 2>&1 | tee check_output
25+
- name: Report
2626
if: failure()
2727
run: |
28+
sed -ne '/diff --git/,$ p' check_output
2829
echo "In order to format all bazel files, please run:"
2930
echo " bazel run //:buildifier"
3031
exit 1

0 commit comments

Comments
 (0)