Skip to content

Commit

Permalink
Update entrypoint.py to use GITHUB_OUTPUT environment variable
Browse files Browse the repository at this point in the history
set-output is deprecated and was replaced by the GITHUB_OUTPUT environment variable.
  • Loading branch information
tmolitor-stud-tu authored and ArtemSBulgakov committed Apr 24, 2024
1 parent a207119 commit b41c54f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def set_output(repository_root, workdir):
path = os.path.normpath(
os.path.join(repository_root, workdir, "bin", filename)
)
print(f"::set-output name=filename::{path}")

with open(os.environ["GITHUB_OUTPUT"], "a") as gofh:
print(f'filename={path}', file=gofh)

if __name__ == "__main__":
main()

0 comments on commit b41c54f

Please sign in to comment.