Skip to content

Commit

Permalink
feat: print the CLI response (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Akshit Garg <akshit@deepsource.io>

Signed-off-by: Akshit Garg <akshit@deepsource.io>
  • Loading branch information
akshit-deepsource authored Dec 14, 2022
1 parent 8868a17 commit 8b49725
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ def main() -> None:

if process.returncode != 0:
if input_data["fail_ci_on_error"] == "true":
print(f"::error file:main.py::{process.stdout}")
print(f"::error file:main.py::{process.stdout.decode('utf-8')}")
sys.exit(1)

print(process.stdout.decode("utf-8"))
print(process.err.decode("utf-8"), file=sys.stderr)


if __name__ == "__main__":
main()

0 comments on commit 8b49725

Please sign in to comment.