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