Skip to content

Commit

Permalink
use with print
Browse files Browse the repository at this point in the history
  • Loading branch information
mickahell committed Jul 27, 2023
1 parent 3132e39 commit 9d6aca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecosystem/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def set_actions_output(outputs: List[Tuple[str, Union[str, bool, float, int]]])
logger.info("Setting output variable %s: %s", name, value)
if "CI" in os.environ:
with open(os.environ["GITHUB_OUTPUT"], "a") as github_env:
github_env.write(f"{name}={str(value)}\n")
print(f"{name}={str(value)}", file=github_env)
else:
# Used only during unit tests
print(f"{name}={value}")
print(f"{name}={str(value)}")

0 comments on commit 9d6aca6

Please sign in to comment.