From 8b4972516b1d36fb43650562f28161d63bdb6770 Mon Sep 17 00:00:00 2001 From: Akshit Garg <107033189+akshit-deepsource@users.noreply.github.com> Date: Wed, 14 Dec 2022 18:47:46 +0530 Subject: [PATCH] feat: print the CLI response (#19) Signed-off-by: Akshit Garg Signed-off-by: Akshit Garg --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9ac7583..9641b07 100755 --- a/main.py +++ b/main.py @@ -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()