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 4b5cf2a commit a027487Copy full SHA for a027487
1 file changed
.github/workflows/pr-java-ci.yml
@@ -41,22 +41,7 @@ jobs:
41
if: steps.build.outputs.exit_code != '0'
42
run: |
43
author="@${{ github.event.pull_request.user.login }}"
44
- errors=""
45
- in_block=0
46
-
47
- while IFS= read -r line; do
48
- 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#"${line%%[![:space:]]*}"}" == Error:* ]]; then
57
- errors+="${line#"${line%%[![:space:]]*}"}"$'\n'
58
59
- done < build_output.txt
+ errors=$(sed -n '/\[INFO\] Starting audit/,/Audit done/ { /^[[:space:]]*Error:/p }' build_output.txt)
60
61
if [ -n "$errors" ]; then
62
{
0 commit comments