Skip to content

Commit e43733f

Browse files
jjpppzhangt2333
andauthored
Update .github/workflows/checkstyle.yml
Co-authored-by: Teng Zhang <[email protected]>
1 parent 241e12d commit e43733f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/checkstyle.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ jobs:
3333
env:
3434
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535
run: |
36-
find . -path "*/build/reports/checkstyle/*.xml" -exec sh -c '
37-
for xmlReport do
38-
cat "$xmlReport" | reviewdog -f=checkstyle -fail-level=any -reporter=github-pr-review || exit 1
39-
done
40-
' sh {} +
36+
find . -path "*/build/reports/checkstyle/*.xml" -type f | while read -r xmlReport; do
37+
cat "$xmlReport" | reviewdog \
38+
-f=checkstyle \
39+
-fail-level=any \
40+
-reporter=github-pr-review \
41+
|| exit 1
42+
done

0 commit comments

Comments
 (0)