We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 302afb7 commit 4f6800cCopy full SHA for 4f6800c
1 file changed
.github/workflows/pr-java-ci.yml
@@ -41,15 +41,16 @@ jobs:
41
if: steps.build.outputs.exit_code != '0'
42
run: |
43
author="@${{ github.event.pull_request.user.login }}"
44
- errors=$(sed -n '/Starting audit/,/Audit done/ { /Error:/p }' build_output.txt)
45
46
- if [ -n "$errors" ]; then
+ audit_block=$(sed -n '/Starting audit\.\.\./,/Audit done\./p' build_output.txt)
+
47
+ if echo "$audit_block" | grep -q '^\[ERROR\]'; then
48
{
49
echo "${author}, some Checkstyle issues were found"
50
echo "**❌ Checkstyle Issues Detected**"
51
echo ""
52
echo '```'
- echo "$errors"
53
+ echo "$audit_block" | grep '^\[ERROR\]'
54
55
} > comment.txt
56
else
0 commit comments