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 8cfdb04 commit 79d1108Copy full SHA for 79d1108
1 file changed
.github/workflows/pr-java-ci.yml
@@ -41,11 +41,22 @@ jobs:
41
if: steps.build.outputs.exit_code != '0'
42
run: |
43
author="@${{ github.event.pull_request.user.login }}"
44
- errors=$(awk '
45
- /\[INFO\] Starting audit/ { in=1; next }
46
- /Audit done/ { in=0 }
47
- in && /^Error:/ { print }
48
- ' build_output.txt)
+ errors=""
+ in_block=0
+
+ while IFS= read -r line; do
+ if [[ "$line" == *"[INFO] Starting audit"* ]]; then
49
+ in_block=1
50
+ continue
51
+ fi
52
+ if [[ "$line" == *"Audit done."* ]]; then
53
54
55
56
+ if [[ $in_block -eq 1 && "$line" == Error:* ]]; then
57
+ errors+="$line"$'\n'
58
59
+ done < build_output.txt
60
61
if [ -n "$errors" ]; then
62
{
0 commit comments