Skip to content

Commit 8b49725

Browse files
feat: print the CLI response (#19)
Signed-off-by: Akshit Garg <[email protected]> Signed-off-by: Akshit Garg <[email protected]>
1 parent 8868a17 commit 8b49725

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,12 @@ def main() -> None:
5151

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

57+
print(process.stdout.decode("utf-8"))
58+
print(process.err.decode("utf-8"), file=sys.stderr)
59+
5760

5861
if __name__ == "__main__":
5962
main()

0 commit comments

Comments
 (0)