Skip to content

Commit 0a63946

Browse files
committed
fix: update main.py
1 parent af22949 commit 0a63946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ def add_pr_comments() -> int:
169169
pull_request.create_comment(body=pr_comments)
170170

171171
# output pr_comments to $GITHUB_OUTPUT
172-
with open(os.environ["GITHUB_OUTPUT"], "a") as output_file:
173-
output_file.write(f"pr_comments={pr_comments}\n")
172+
with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as env_file:
173+
env_file.write(f"pr_comments={pr_comments}\n")
174174

175175
return 0 if result_text is None else 1
176176
except Exception as e:

0 commit comments

Comments
 (0)