From b41c54fb735feba12cca35818f315431261f627a Mon Sep 17 00:00:00 2001 From: Thilo Molitor Date: Wed, 24 Apr 2024 03:43:05 +0200 Subject: [PATCH] Update entrypoint.py to use GITHUB_OUTPUT environment variable set-output is deprecated and was replaced by the GITHUB_OUTPUT environment variable. --- entrypoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.py b/entrypoint.py index 14055ba..d6f7805 100755 --- a/entrypoint.py +++ b/entrypoint.py @@ -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()