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 e6a3354 commit db508a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,20 @@
runId = d2["runId"]
runType = d2["runType"]
tasks = d2["tasks"]

runTasks = []
for task in tasks:
runTasks.append(task)

if VERBOSE is not None:
print("RUN ID:", runId)
print("RUN TYPE:", runType)
print("RUN TASKS:", tasks)
print("RUN TASKS:", {json.dumps(runTasks)})

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)}")
f.write(f"tasks={json.dumps(runTasks)}\n")

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

Expand Down

0 comments on commit db508a3

Please sign in to comment.