From efee27b98b726f1208b793e10965f88edbe54650 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Sat, 21 Sep 2019 19:24:03 +0900 Subject: [PATCH] fix: Fixes #27 for docker hub image --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 71ccd9e..ce3c5ad 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -74,12 +74,12 @@ git add --all print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}" COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}" -if [[ ${INPUT_EMPTYCOMMITS} == "true" ]]; then - git commit --allow-empty -m "${COMMIT_MESSAGE}" -else +if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then git commit -m "${COMMIT_MESSAGE}" || \ print_info "No changes detected, skipping deployment" && \ exit 0 +else + git commit --allow-empty -m "${COMMIT_MESSAGE}" fi git push origin "${remote_branch}"