From 6284415c12c2fdb07d3532dbc6124d77445c5d3a Mon Sep 17 00:00:00 2001 From: niwciu <57457942+niwciu@users.noreply.github.com> Date: Thu, 5 Sep 2024 00:22:33 +0200 Subject: [PATCH] set-output command refactor - command deprecation warning resolved --- entrypoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.py b/entrypoint.py index 6651219..724f897 100644 --- a/entrypoint.py +++ b/entrypoint.py @@ -155,8 +155,8 @@ def surround_double_quotes(x: str): with open(args.cli_output_file, mode="w") as f: f.write(result.stdout) -print("::set-output name=cli_output_path::" + str(args.cli_output_file)) +print("cli_output_path=" + str(args.cli_output_file) + ">> $GITHUB_OUTPUT") if output_file_flag: - print("::set-output name=result_output_path::" + str(output_file_path)) + print("result_output_path=" + str(output_file_path)+ ">> $GITHUB_OUTPUT") sys.exit(result.returncode)