Skip to content

Commit 628f468

Browse files
committed
Removes the newline at the end
1 parent be8c312 commit 628f468

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def read_result_file() -> str | None:
7070
result_text = re.sub(
7171
r"\x1B\[[0-9;]*[a-zA-Z]", "", result_file.read()
7272
) # Remove ANSI colors
73-
return result_text
73+
return result_text.rstrip()
7474
return None
7575

7676

@@ -84,7 +84,7 @@ def add_job_summary() -> int:
8484
summary_content = (
8585
SUCCESS_TITLE
8686
if result_text is None
87-
else f"{FAILURE_TITLE}```\n{result_text}\n```"
87+
else f"{FAILURE_TITLE}```\n{result_text}```"
8888
)
8989

9090
with open(GITHUB_STEP_SUMMARY, "a") as summary_file:
@@ -113,7 +113,7 @@ def add_pr_comments() -> int:
113113
pr_comments = (
114114
SUCCESS_TITLE
115115
if result_text is None
116-
else f"{FAILURE_TITLE}```\n{result_text}\n```"
116+
else f"{FAILURE_TITLE}```\n{result_text}```"
117117
)
118118

119119
# Fetch all existing comments on the PR

0 commit comments

Comments
 (0)