From 739e4d0187af9e950f2e9e07e22c3e12a6cfe25a Mon Sep 17 00:00:00 2001 From: "Tomachi [ICHIGO]" Date: Tue, 25 Jan 2022 05:17:40 +0900 Subject: [PATCH] ci: add echo count --- .github/workflows/check-system-print.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-system-print.yml b/.github/workflows/check-system-print.yml index e370e2123..c38304deb 100644 --- a/.github/workflows/check-system-print.yml +++ b/.github/workflows/check-system-print.yml @@ -16,8 +16,9 @@ jobs: - name: Check using System.out.print run: | COUNT=`grep -rE "System\.(out|err)\.print" --include=*.java src/main > ../system-prints.txt || true` - cat ../system-prints.txt | reviewdog -efm="%f:%l" -name="Check using System.out/err.print" -reporter=github-pr-review -level=warning + echo $COUNT cat ../system-prints.txt + cat ../system-prints.txt | reviewdog -efm="%f:%l" -name="Check using System.out/err.print" -reporter=github-pr-review -level=warning if [ "$COUNT" != "0" ]; then echo "Found System.out/err.print in Java source files" exit 1