From a899cb542bc4d9baed1754134c84280b44fed183 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Thu, 17 Oct 2019 07:51:48 +0900 Subject: [PATCH] fix: Force push when forceOrphan is true --- entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 32b6bc3..aa565bc 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"