CI: add .strip() to comment/ID file read

Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com>
This commit is contained in:
Jami
2023-10-24 17:48:38 -04:00
committed by GitHub
parent 687ecffe71
commit 7c053ed428

View File

@@ -59,7 +59,7 @@ def comment_pr(repo, run_id):
try:
utils.download_artifact(repo, "comment", "comment", run_id)
with open("comment/ID") as file:
raw_comment_id = int(file.read())
raw_comment_id = int(file.read().strip())
except Exception as e:
# If there is no existing comment, the `comment/ID` artifact
# will not exist. This will cause `utils.download_artifact`