We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4459dae commit b692f73Copy full SHA for b692f73
1 file changed
.github/workflows/unit-test-and-coverage-gate.yml
@@ -96,7 +96,8 @@ jobs:
96
# Extract numeric values using simpler patterns
97
OVERALL=$(grep "Overall Coverage:" coverage_report.txt | sed 's/[^0-9.]*\([0-9.]\+\)%.*/\1/')%
98
THRESHOLD=$(grep "Threshold:" coverage_report.txt | sed 's/[^0-9.]*\([0-9.]\+\)%.*/\1/')%
99
- STATUS=$(grep "Status:" coverage_report.txt | sed 's/[^A-Z]*\([A-Z]\+\).*/\1/')
+ # Get last word on the Status line (PASSED or FAILED)
100
+ STATUS=$(grep "Status:" coverage_report.txt | awk '{print $NF}')
101
102
# Status badge
103
if [[ "$STATUS" == "PASSED" ]]; then
0 commit comments