fix: INPUT_EMPTYCOMMITS false

This commit is contained in:
peaceiris 2019-09-23 13:20:37 +09:00
parent bc2d1b14df
commit 6b5fd85f5d

View File

@ -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