mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-03 13:49:45 +11:00
chore: fix multiline output
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
parent
f9a4c9fc12
commit
b292effaa3
2 changed files with 32 additions and 3 deletions
11
action.yml
11
action.yml
|
|
@ -90,7 +90,16 @@ runs:
|
|||
${INPUT_MODULE:+-m $INPUT_MODULE} \
|
||||
$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)"
|
||||
echo "stdout<<${delim}"
|
||||
cat "${tmpout}"
|
||||
echo
|
||||
echo "${delim}"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- if: (inputs.call != '' || inputs.args != '') && inputs.engine-stop == 'true'
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue