Compare commits

...

6 Commits

Author SHA1 Message Date
Jesse
823caae896
Merge aed736182d into b4a07ca594 2024-07-20 15:12:38 +09:00
Jesse
aed736182d
Merge pull request #2 from GammaGames/appleboy-master
Appleboy master
2024-07-19 13:54:57 -06:00
GammaGames
332ff99a47 Merge branch 'master' of github.com:appleboy/ssh-action into appleboy-master 2024-07-19 13:52:02 -06:00
Jesse
ec7832be1a
Merge branch 'appleboy:master' into master 2024-07-08 08:15:37 -06:00
GammaGames
396c696e03 syntax fix 2024-04-03 10:12:39 -06:00
GammaGames
27b687e565 rebase with upstream 2024-04-03 10:02:10 -06:00
2 changed files with 15 additions and 1 deletions

View File

@ -73,6 +73,12 @@ inputs:
request_pty:
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:
using: "composite"
steps:

View File

@ -63,7 +63,15 @@ TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
curl -fsSL --retry 5 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
chmod +x ${TARGET}
echo "======= CLI Version ======="
sh -c "${TARGET} --version" # print version
echo "==========================="
sh -c "${TARGET} $*" # run the command
{
sh -c "${TARGET} $*" # run the command
} 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