Skip to content

Commit

Permalink
update tasks output
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Falourd <guillaume.falourd@zup.com.br>
  • Loading branch information
GuillaumeFalourd committed Sep 29, 2023
1 parent 9d6b222 commit e6a3354
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,10 @@
print("RUN TYPE:", runType)
print("RUN TASKS:", tasks)

output_file = os.getenv('GITHUB_OUTPUT')
with open(output_file, "a") as myfile:
myfile.write(f"runId={runId}")
myfile.write(f"runType={runType}")
myfile.write(f"tasks={tasks}")
with open(os.environ['GITHUB_OUTPUT'], "a") as f:
f.write(f"runId={runId}")
f.write(f"runType={runType}")
f.write(f"tasks={json.dumps(tasks)}")

print(f"Run {runType} successfully started with ID: {runId}")

Expand Down

0 comments on commit e6a3354

Please sign in to comment.