fix: Force push when forceOrphan is true

This commit is contained in:
peaceiris 2019-10-17 07:51:48 +09:00
parent f83fbff9f3
commit a899cb542b

View File

@ -116,5 +116,10 @@ else
git commit --allow-empty -m "${COMMIT_MESSAGE}"
fi
git push origin "${remote_branch}"
if [[ ${INPUT_FORCEORPHAN} == "false" ]]; then
git push origin "${remote_branch}"
else
git push origin --force "${remote_branch}"
fi
print_info "${GITHUB_SHA} was successfully deployed"