diff --git a/entrypoint.sh b/entrypoint.sh index 8376972..a0fdb97 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -55,7 +55,7 @@ remote_branch="${PUBLISH_BRANCH}" local_dir="${HOME}/$(tr -cd 'a-f0-9' < /dev/urandom | head -c 32)" if git clone --depth=1 --single-branch --branch "${remote_branch}" "${remote_repo}" "${local_dir}"; then cd "${local_dir}" - git rm -r '*' + git rm -r --ignore-unmatch '*' find "${GITHUB_WORKSPACE}/${PUBLISH_DIR}" -maxdepth 1 | \ tail -n +2 | \ xargs -I % cp -rf % "${local_dir}/"