Skip to content

Commit 4b09e05

Browse files
authored
Fix build report not parsing the last line (#860)
1 parent 670fc60 commit 4b09e05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/gha/report_build_status.py

+2
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ def analyze_log(text, url, firestore_only):
178178
#
179179
# Assuming that each product begins with no spaces, and all subsequent lines will be indented
180180
regex_line = r"firestore:\n( .[^\n]*\n)*"
181+
# Add a newline at the end, to help the regex format check the last line
182+
text = text + "\n"
181183
if firestore_only:
182184
# Reduce the text log to just what is matched (if no match, just use everything)
183185
match = re.search(regex_line, text, re.MULTILINE)

0 commit comments

Comments
 (0)