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"