mirror of
https://github.com/appleboy/ssh-action.git
synced 2025-06-20 16:42:10 +10:00
tee
This commit is contained in:
parent
e59e1d9285
commit
c1dc5db4d6
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ sh -c "${TARGET} --version" # print version
|
||||||
echo "==========================="
|
echo "==========================="
|
||||||
if [[ "$INPUT_CAPTURE_STDOUT" == 'true' ]]; then
|
if [[ "$INPUT_CAPTURE_STDOUT" == 'true' ]]; then
|
||||||
echo 'stdout<<EOF' >> $GITHUB_OUTPUT # use heredoc for multiline output
|
echo 'stdout<<EOF' >> $GITHUB_OUTPUT # use heredoc for multiline output
|
||||||
sh -c "${TARGET} $*" >> $GITHUB_OUTPUT # run the command
|
sh -c "${TARGET} $*" | tee -a $GITHUB_OUTPUT # run the command
|
||||||
echo 'EOF' >> $GITHUB_OUTPUT
|
echo 'EOF' >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
sh -c "${TARGET} $*" # run the command
|
sh -c "${TARGET} $*" # run the command
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue