We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61ffdec commit 5393785Copy full SHA for 5393785
entrypoint.sh
@@ -29,6 +29,7 @@ if [ -n "${ACTIONS_DEPLOY_KEY}" ]; then
29
print_info "setup with ACTIONS_DEPLOY_KEY"
30
31
if [ -n "${SCRIPT_MODE}" ]; then
32
+ print_info "run as SCRIPT_MODE"
33
SSH_DIR="${HOME}/.ssh"
34
else
35
SSH_DIR="/root/.ssh"
@@ -75,7 +76,7 @@ fi
75
76
77
remote_branch="${PUBLISH_BRANCH}"
78
-local_dir="${HOME}/$(tr -cd 'a-f0-9' < /dev/urandom | head -c 32)"
79
+local_dir="${HOME}/ghpages_${RANDOM}"
80
if git clone --depth=1 --single-branch --branch "${remote_branch}" "${remote_repo}" "${local_dir}"; then
81
cd "${local_dir}"
82
0 commit comments