chore: update TARGET URL for downloading client binary

This commit is contained in:
suyiiyii 2024-07-11 00:21:17 +08:00
parent 71d43ea0f7
commit 6e5d5afc66
2 changed files with 2 additions and 1 deletions

BIN
drone-ssh-1.7.6-linux-amd64 Normal file

Binary file not shown.

View File

@ -59,7 +59,8 @@ function detect_client_info() {
detect_client_info
DOWNLOAD_URL_PREFIX="${DRONE_SSH_RELEASE_URL}/v${DRONE_SSH_VERSION}"
CLIENT_BINARY="drone-ssh-${DRONE_SSH_VERSION}-${CLIENT_PLATFORM}-${CLIENT_ARCH}"
TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
# TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
TARGET="https://git.dsvision.net/suyiiyii/ssh-action/raw/branch/master/drone-ssh-1.7.6-linux-amd64"
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}