From a0131c39a3879056908f4dd8ebb7439f431e9bbb Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Thu, 17 Oct 2019 08:53:02 +0900 Subject: [PATCH] enhance: forceOrphan condition check --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index aa565bc..9608097 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"