Skip to content

Commit

Permalink
chore: fix multiline output
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Chadwell <[email protected]>
  • Loading branch information
jedevc committed Nov 11, 2024
1 parent 347ab70 commit 738d572
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,27 @@ runs:
${INPUT_MODULE:+-m $INPUT_MODULE} \
${{ inputs.args }}; } | tee "${tmpout}"
(echo -n "stdout=" && cat "${tmpout}") >> "$GITHUB_OUTPUT"
{
# we need a delim that doesn't appear in the output - a hash of the
# file itself *probably* won't (if it does, we have larger
# cryptographic problems)
# delim="$(sha256sum $tmpout | cut -d " " -f1)"
delim="EOF"
echo "stdout<<${delim}"
cat "${tmpout}"
echo "${delim}"
}
{
# we need a delim that doesn't appear in the output - a hash of the
# file itself *probably* won't (if it does, we have larger
# cryptographic problems)
# delim="$(sha256sum $tmpout | cut -d " " -f1)"
delim="EOF"
echo "stdout<<${delim}"
cat "${tmpout}"
echo "${delim}"
} >> "$GITHUB_OUTPUT"
- if: inputs.engine-stop == 'true'
shell: bash
Expand Down

0 comments on commit 738d572

Please sign in to comment.