1
0
Fork 0
mirror of https://github.com/ArtemSBulgakov/buildozer-action.git synced 2024-08-16 10:09:52 +02:00

Update entrypoint.py to use GITHUB_OUTPUT environment variable

set-output is deprecated and was replaced by the GITHUB_OUTPUT environment variable.
This commit is contained in:
Thilo Molitor 2024-04-24 03:43:05 +02:00 committed by Artem Bulgakov
parent a2071194e5
commit b41c54fb73

View file

@ -152,8 +152,8 @@ def set_output(repository_root, workdir):
path = os.path.normpath( path = os.path.normpath(
os.path.join(repository_root, workdir, "bin", filename) 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__": if __name__ == "__main__":
main() main()