Skip to content

Commit 6b5fd85

Browse files
committed
fix: INPUT_EMPTYCOMMITS false
1 parent bc2d1b1 commit 6b5fd85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
7777
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
7878
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
7979
git commit -m "${COMMIT_MESSAGE}" || \
80-
print_info "No changes detected, skipping deployment" && \
81-
exit 0
80+
(print_info "No changes detected, skipping deployment" && \
81+
exit 0)
8282
else
8383
git commit --allow-empty -m "${COMMIT_MESSAGE}"
8484
fi

0 commit comments

Comments
 (0)