Skip to content

Commit

Permalink
This is not tools
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
  • Loading branch information
s0undt3ch committed Sep 21, 2023
1 parent cb37c73 commit 9de3113
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,13 @@ def matrix(ctx, image, from_workflow=False):
}
)

ctx.warn("Generated Matrix:")
print(pprint.pformat(output), flush=True, file=sys.stdout)
utils.info("Generated Matrix:")
utils.write_message(pprint.pformat(output), flush=True, file=sys.stdout)

if from_workflow:
github_output = os.environ.get("GITHUB_OUTPUT")
if github_output is None:
ctx.warn("The 'GITHUB_OUTPUT' variable is not set.")
utils.warn("The 'GITHUB_OUTPUT' variable is not set.")
utils.exit_invoke(1)
with open(github_output, "a", encoding="utf-8") as wfh:
wfh.write(f"dockerinfo={json.dumps(output)}\n")
Expand Down

0 comments on commit 9de3113

Please sign in to comment.