Skip to content

Commit

Permalink
fix: INPUT_EMPTYCOMMITS false
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Sep 23, 2019
1 parent bc2d1b1 commit 6b5fd85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b5fd85

Please sign in to comment.