mirror of
https://gitea.com/actions/appleboy-ssh-action.git
synced 2024-11-22 18:19:36 +01:00
rebase with upstream
This commit is contained in:
parent
551964ebda
commit
27b687e565
2 changed files with 15 additions and 1 deletions
|
@ -73,6 +73,12 @@ inputs:
|
||||||
request_pty:
|
request_pty:
|
||||||
description: "Request a pseudo-terminal from the server."
|
description: "Request a pseudo-terminal from the server."
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
stdout:
|
||||||
|
description: 'Standard output of the executed commands.'
|
||||||
|
stderr:
|
||||||
|
description: 'Standard error of the executed commands.'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -63,4 +63,12 @@ TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
|
||||||
echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
|
echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
|
||||||
curl -fL --retry 3 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
|
curl -fL --retry 3 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
|
||||||
chmod +x ${TARGET}
|
chmod +x ${TARGET}
|
||||||
|
|
||||||
|
{
|
||||||
sh -c "${TARGET} $*"
|
sh -c "${TARGET} $*"
|
||||||
|
} 2> /tmp/errFile | tee /tmp/outFile
|
||||||
|
|
||||||
|
stdout=$(cat /tmp/outFile)
|
||||||
|
stderr=$(cat /tmp/errFile)
|
||||||
|
echo "stdout=${stdout//$'\n'/\\n}" >> $GITHUB_OUTPUT
|
||||||
|
echo "stderr=${stderr//$'\n'/\\n}" >> $GITHUB_OUTPUT)
|
||||||
|
|
Loading…
Reference in a new issue