Skip to content

Commit 196b6d7

Browse files
committed
CI: simplify reporting
1 parent 9def572 commit 196b6d7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/buildifier.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ jobs:
2121
- name: Check bazel formatting
2222
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
2323
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
24+
extra_args: >
25+
buildifier --all-files 2>&1 ||
26+
(
27+
echo -e "In order to format all bazel files, please run:\n bazel run //:buildifier"; exit 1
28+
)

0 commit comments

Comments
 (0)