mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-20 17:43:18 +08:00
enhance: forceOrphan condition check
This commit is contained in:
parent
a899cb542b
commit
a0131c39a3
@ -116,10 +116,10 @@ else
|
||||
git commit --allow-empty -m "${COMMIT_MESSAGE}"
|
||||
fi
|
||||
|
||||
if [[ ${INPUT_FORCEORPHAN} == "false" ]]; then
|
||||
git push origin "${remote_branch}"
|
||||
else
|
||||
if [[ ${INPUT_FORCEORPHAN} == "true" ]]; then
|
||||
git push origin --force "${remote_branch}"
|
||||
else
|
||||
git push origin "${remote_branch}"
|
||||
fi
|
||||
|
||||
print_info "${GITHUB_SHA} was successfully deployed"
|
||||
|
Loading…
x
Reference in New Issue
Block a user