Skip to content

Commit e11f2b6

Browse files
committed
Stringify output values
1 parent 075ad41 commit e11f2b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

image/src/github_actions/commands.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ def generate_delimiter():
99
return ''.join(random.choice(string.ascii_lowercase) for _ in range(20))
1010

1111
def output(name: str, value: Any) -> None:
12+
if not isinstance(value, str):
13+
value = str(value)
14+
1215
if 'GITHUB_OUTPUT' in os.environ and Path(os.environ['GITHUB_OUTPUT']).is_file():
1316
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
1417
if len(value.splitlines()) > 1:

0 commit comments

Comments
 (0)