Skip to content

Commit

Permalink
print output instead of file writing
Browse files Browse the repository at this point in the history
  • Loading branch information
CallMeGreg committed Nov 21, 2024
1 parent 0eb562d commit 8a29d33
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,11 @@ def main(github_token, fail_on_alert, fail_on_alert_exclude_closed, disable_pr_c
print(f"alerts step output:\n{step_output_json}")

# Write the alert details to the step output
with open(os.environ["GITHUB_OUTPUT"], "a") as fh:
print(f"alerts={step_output_json}", file=fh)
# with open(os.environ["GITHUB_OUTPUT"], "a") as fh:
# print(f"alerts={step_output_json}", file=fh)

print(f'"alerts={step_output_json}" >> "$GITHUB_OUTPUT"')


# print(f"echo alerts={step_output_json} >> $GITHUB_OUTPUT")

Expand Down

0 comments on commit 8a29d33

Please sign in to comment.