Skip to content

Commit

Permalink
CI: simplify reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
redsun82 committed Apr 24, 2024
1 parent 9def572 commit 196b6d7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/buildifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ jobs:
- name: Check bazel formatting
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
with:
extra_args: buildifier --all-files 2>&1 | tee check_output
- name: Report
if: failure()
run: |
sed -ne '/diff --git/,$ p' check_output
echo "In order to format all bazel files, please run:"
echo " bazel run //:buildifier"
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 comments on commit 196b6d7

Please sign in to comment.