Skip to content

Commit c388ea5

Browse files
committed
feat: use GITHUB_OUTPUT instead
1 parent 459a669 commit c388ea5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,9 @@ def add_pr_comments() -> int:
168168
print(f"Creating a new comment on PR #{pr_number}.")
169169
pull_request.create_comment(body=pr_comments)
170170

171-
# output pr_comments to GitHub Actions
172-
print(f"::set-output name=pr_comments::{pr_comments}")
171+
# 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")
173174

174175
return 0 if result_text is None else 1
175176
except Exception as e:

0 commit comments

Comments
 (0)