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

Commit

Permalink
Merge pull request #667 from book000/fix/ci-error
Browse files Browse the repository at this point in the history
ci: only pull-request
  • Loading branch information
book000 authored Jan 24, 2022
2 parents 465da16 + 119e48a commit 0a4ab9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/check-system-print.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Check using System.out/err.print

on: [ push, pull_request_target ]
on: [ pull_request_target ]

jobs:
check-system-print:
Expand All @@ -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: $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 0a4ab9f

Please sign in to comment.