ctx.print is not the same as python's print

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-12-05 18:18:27 +00:00
parent 6fb799d38a
commit e93d3fcc9c
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -10,7 +10,6 @@ import ast
import os
import pathlib
import re
import sys
from typing import TYPE_CHECKING
from ptscripts import Context, command_group
@ -831,8 +830,7 @@ def annotate(
# Print it to stdout so that the GitHub runner pick's it up and adds the annotation
ctx.print(
f"::{kind} file={fpath},line={start_lineno},endLine={end_lineno}::{message}",
file=sys.stdout,
flush=True,
soft_wrap=True,
)