Skip to content

Commit

Permalink
update many-outputs python workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFalourd committed Dec 12, 2023
1 parent d46758e commit d97e830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions output_function.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os

def save_output(name: str, value: str):
with open(os.getenv('GITHUB_OUTPUT'), "a") as output_file:
output_file.write(f"{name}={value}")
with open(os.getenv['GITHUB_OUTPUT'], "a") as output_file:
print(f"{name}={value}", file=output_file)

save_output("TEST1", "VALUE1")
save_output("TEST2", "VALUE2")
Expand Down

0 comments on commit d97e830

Please sign in to comment.