mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-19 00:43:14 +08:00
fix: INPUT_EMPTYCOMMITS false
This commit is contained in:
parent
bc2d1b14df
commit
6b5fd85f5d
@ -77,8 +77,8 @@ print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
|
|||||||
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
|
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
|
||||||
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
|
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
|
||||||
git commit -m "${COMMIT_MESSAGE}" || \
|
git commit -m "${COMMIT_MESSAGE}" || \
|
||||||
print_info "No changes detected, skipping deployment" && \
|
(print_info "No changes detected, skipping deployment" && \
|
||||||
exit 0
|
exit 0)
|
||||||
else
|
else
|
||||||
git commit --allow-empty -m "${COMMIT_MESSAGE}"
|
git commit --allow-empty -m "${COMMIT_MESSAGE}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user