mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-20 17:43:18 +08:00
fix: forceOrphan condition check
This commit is contained in:
parent
7216888f95
commit
f83fbff9f3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user