From f83fbff9f37fe018f64baba801bcf44b2f2cde80 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Thu, 17 Oct 2019 07:46:50 +0900 Subject: [PATCH] fix: forceOrphan condition check --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 93a5612..32b6bc3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -78,7 +78,7 @@ remote_branch="${PUBLISH_BRANCH}" local_dir="${HOME}/ghpages_${RANDOM}" -if [ -n "${INPUT_FORCEORPHAN}" ]; then +if [[ "${INPUT_FORCEORPHAN}" == "true" ]]; then print_info "force ophan: ${INPUT_FORCEORPHAN}" cd "${PUBLISH_DIR}" git init