From 6244d36260a2aec057361904e1a23cf329e9e794 Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Wed, 24 Apr 2024 16:34:07 +0200 Subject: [PATCH] CI: make reporting better --- .github/workflows/buildifier.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildifier.yml b/.github/workflows/buildifier.yml index f2a9dc8809060..31e716b44731b 100644 --- a/.github/workflows/buildifier.yml +++ b/.github/workflows/buildifier.yml @@ -21,10 +21,11 @@ jobs: - name: Check bazel formatting uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 with: - extra_args: buildifier --all-files --show-diff-on-failure - - name: Print rectifying command + extra_args: buildifier --all-files 2>&1 | tee check_output + - name: Report if: failure() run: | + sed -ne '/diff --git/,$' check_output echo "In order to format all bazel files, please run:" echo " bazel run //:buildifier" exit 1