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