File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -364,8 +364,16 @@ jobs:
364364
365365 # Process both test failures and build failures
366366
367- # First handle regular test failures
368- if grep -oE 'FAIL:.*\(([^)]+)\)' test-failures.txt 2>/dev/null | sed -E 's/.*\(([^):]+)[^)]*\).*/\1/' | sort -u > "$TEMP_PACKAGES"; then
367+ # Extract package names from test failures using a named regex and
368+ # intermediate steps
369+ FAIL_REGEX='FAIL:.*\(([^)]+)\)'
370+ PACKAGE_LINE_REGEX='.*\(([^):]+)[^)]*\).*'
371+
372+ grep -oE "$FAIL_REGEX" test-failures.txt 2>/dev/null > temp-fail-lines.txt
373+ sed -E "s/$PACKAGE_LINE_REGEX/\1/" temp-fail-lines.txt | sort -u > "$TEMP_PACKAGES"
374+ rm temp-fail-lines.txt
375+
376+ if [[ -s "$TEMP_PACKAGES" ]]; then
369377 echo "📦 Found packages with test failures:"
370378 cat "$TEMP_PACKAGES"
371379
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ builds:
3030# Archives
3131# ---------------------------
3232archives :
33- - id : go-template
33+ - id : go-sanitize
3434 name_template : >-
3535 {{- .ProjectName }}_
3636 {{- .Version }}_
You can’t perform that action at this time.
0 commit comments