From 677722197232c0b5b09a4b5e868ef2044026a2c3 Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Wed, 10 Jun 2026 14:04:08 +0000 Subject: [PATCH] Fix output for multiline strings --- action/entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action/entrypoint.sh b/action/entrypoint.sh index b68c6bc..768b586 100755 --- a/action/entrypoint.sh +++ b/action/entrypoint.sh @@ -1,7 +1,11 @@ #!/bin/sh OUTPUT="$(github-polyglot "$@")" + # NOTE: We still want to show the output to the user, which can be helpful if the user is using # the `print` format and just wants to see the output in the action log. echo "$OUTPUT" + # NOTE: Save the output to the `output` output of the action -echo -n "output=$OUTPUT" >> $GITHUB_OUTPUT +echo 'output<> "$GITHUB_OUTPUT" +echo "$OUTPUT" >> "$GITHUB_OUTPUT" +echo "EOF" >> "$GITHUB_OUTPUT"