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 <[email protected]>
  • Loading branch information
s0undt3ch committed Sep 21, 2023
1 parent cb37c73 commit 042568b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tasks/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import json
import os
import pprint
import sys

import jinja2.sandbox
import yaml
Expand Down Expand Up @@ -197,13 +196,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))

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 042568b

Please sign in to comment.