Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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<<EOF' >> "$GITHUB_OUTPUT"
echo "$OUTPUT" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"