Skip to content

Commit 5ade826

Browse files
committed
chore: improve CLI reliability and version visibility
- Increase curl retry attempts from 3 to 5 - Add echo statements to display CLI version before and after running the version command Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 8b60782 commit 5ade826

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

entrypoint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ DOWNLOAD_URL_PREFIX="${DRONE_SSH_RELEASE_URL}/v${DRONE_SSH_VERSION}"
6161
CLIENT_BINARY="drone-ssh-${DRONE_SSH_VERSION}-${CLIENT_PLATFORM}-${CLIENT_ARCH}"
6262
TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
6363
echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
64-
curl -fL --retry 3 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
64+
curl -fL --retry 5 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
6565
chmod +x ${TARGET}
66+
echo "======= CLI Version ======="
6667
sh -c "${TARGET} --version" # print version
68+
echo "==========================="
6769
sh -c "${TARGET} $*" # run the command

0 commit comments

Comments
 (0)