fix: forceOrphan condition check

This commit is contained in:
peaceiris 2019-10-17 07:46:50 +09:00
parent 7216888f95
commit f83fbff9f3

View File

@ -78,7 +78,7 @@ remote_branch="${PUBLISH_BRANCH}"
local_dir="${HOME}/ghpages_${RANDOM}" local_dir="${HOME}/ghpages_${RANDOM}"
if [ -n "${INPUT_FORCEORPHAN}" ]; then if [[ "${INPUT_FORCEORPHAN}" == "true" ]]; then
print_info "force ophan: ${INPUT_FORCEORPHAN}" print_info "force ophan: ${INPUT_FORCEORPHAN}"
cd "${PUBLISH_DIR}" cd "${PUBLISH_DIR}"
git init git init