Compare commits

...

8 Commits

Author SHA1 Message Date
Jesse
f154d3354f
Merge fbf2b7866a96aae189055200aae364d3162038d6 into 6137f733fb6aad9941aaf990e4df5af3aef72d1c 2024-11-23 22:39:21 +01:00
Jesse
fbf2b7866a
Merge branch 'appleboy:master' into master 2024-11-22 13:55:59 -07:00
Jesse
5b73b09c92
Merge branch 'appleboy:master' into master 2024-10-23 19:17:26 +00: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

@ -78,6 +78,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:

View File

@ -64,7 +64,15 @@ 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 -fsSL --retry 5 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET} curl -fsSL --retry 5 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
chmod +x ${TARGET} chmod +x ${TARGET}
echo "======= CLI Version =======" echo "======= CLI Version ======="
sh -c "${TARGET} --version" # print version sh -c "${TARGET} --version" # print version
echo "===========================" 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