mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 22:56:54 +08:00
fix: Fixes #27 for docker hub image
This commit is contained in:
parent
0713c6cb9c
commit
efee27b98b
@ -74,12 +74,12 @@ git add --all
|
|||||||
|
|
||||||
print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
|
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} == "true" ]]; then
|
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
|
||||||
git commit --allow-empty -m "${COMMIT_MESSAGE}"
|
|
||||||
else
|
|
||||||
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
|
||||||
|
git commit --allow-empty -m "${COMMIT_MESSAGE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git push origin "${remote_branch}"
|
git push origin "${remote_branch}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user