From 6b5fd85f5d07b7d726507e391605e5989b095a8a Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 23 Sep 2019 13:20:37 +0900 Subject: [PATCH] fix: INPUT_EMPTYCOMMITS false --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index f725f5e..18f593c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -77,8 +77,8 @@ print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}" COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}" if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then git commit -m "${COMMIT_MESSAGE}" || \ - print_info "No changes detected, skipping deployment" && \ - exit 0 + (print_info "No changes detected, skipping deployment" && \ + exit 0) else git commit --allow-empty -m "${COMMIT_MESSAGE}" fi