mirror of
https://gitea.com/actions/appleboy-ssh-action.git
synced 2024-11-22 01:59:35 +01:00
chore(cli): enhance version handling and testing mechanisms
- Add a command to print the version of the target before running the main command Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
036cad7df7
commit
8b6078208d
1 changed files with 2 additions and 1 deletions
|
@ -63,4 +63,5 @@ TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
|
|||
echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
|
||||
curl -fL --retry 3 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
|
||||
chmod +x ${TARGET}
|
||||
sh -c "${TARGET} $*"
|
||||
sh -c "${TARGET} --version" # print version
|
||||
sh -c "${TARGET} $*" # run the command
|
||||
|
|
Loading…
Reference in a new issue