Skip to content

Commit 5393785

Browse files
committed
refactor: enhance
1 parent 61ffdec commit 5393785

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
@@ -29,6 +29,7 @@ if [ -n "${ACTIONS_DEPLOY_KEY}" ]; then
2929
print_info "setup with ACTIONS_DEPLOY_KEY"
3030

3131
if [ -n "${SCRIPT_MODE}" ]; then
32+
print_info "run as SCRIPT_MODE"
3233
SSH_DIR="${HOME}/.ssh"
3334
else
3435
SSH_DIR="/root/.ssh"
@@ -75,7 +76,7 @@ fi
7576

7677
remote_branch="${PUBLISH_BRANCH}"
7778

78-
local_dir="${HOME}/$(tr -cd 'a-f0-9' < /dev/urandom | head -c 32)"
79+
local_dir="${HOME}/ghpages_${RANDOM}"
7980
if git clone --depth=1 --single-branch --branch "${remote_branch}" "${remote_repo}" "${local_dir}"; then
8081
cd "${local_dir}"
8182

0 commit comments

Comments
 (0)