diff --git a/output_function.py b/output_function.py index 8c11ac1f74..ed6deabbf0 100644 --- a/output_function.py +++ b/output_function.py @@ -1,9 +1,9 @@ import os def save_output(name: str, value: str): - with open(os.getenv['GITHUB_OUTPUT'], "a") as output_file: - print(f"{name}={value}", file=output_file) + with open(os.environ['GITHUB_OUTPUT'], 'a') as output_file: + print(f'{name}={value}', file=output_file) -save_output("TEST1", "VALUE1") -save_output("TEST2", "VALUE2") -save_output("TEST3", "VALUE3") \ No newline at end of file +save_output('TEST1', 'VALUE1') +save_output('TEST2', 'VALUE2') +save_output('TEST3', 'VALUE3') \ No newline at end of file