enhance: forceOrphan condition check

This commit is contained in:
peaceiris 2019-10-17 08:53:02 +09:00
parent a899cb542b
commit a0131c39a3

View File

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