Skip to content

Commit 8b60782

Browse files
committed
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 <[email protected]>
1 parent 036cad7 commit 8b60782

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
6363
echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
6464
curl -fL --retry 3 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
6565
chmod +x ${TARGET}
66-
sh -c "${TARGET} $*"
66+
sh -c "${TARGET} --version" # print version
67+
sh -c "${TARGET} $*" # run the command

0 commit comments

Comments
 (0)