Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
ci: add echo count
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 committed Jan 24, 2022
1 parent 0279a31 commit 739e4d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/check-system-print.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 739e4d0

Please sign in to comment.