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 d97e830 commit a2431fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions output_function.py
Original file line number Diff line number Diff line change
@@ -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")
save_output('TEST1', 'VALUE1')
save_output('TEST2', 'VALUE2')
save_output('TEST3', 'VALUE3')

0 comments on commit a2431fa

Please sign in to comment.