mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-21 10:03: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}"
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user