mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 22:56:54 +08:00
parent
fd02997068
commit
08937a7751
@ -26,3 +26,6 @@ inputs:
|
|||||||
useremail:
|
useremail:
|
||||||
description: 'Set Git user.email'
|
description: 'Set Git user.email'
|
||||||
required: false
|
required: false
|
||||||
|
commitMessage:
|
||||||
|
description: 'Set custom commit message'
|
||||||
|
required: false
|
||||||
|
@ -118,10 +118,16 @@ git add --all
|
|||||||
|
|
||||||
print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
|
print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
|
||||||
|
|
||||||
if [ -n "${EXTERNAL_REPOSITORY}" ]; then
|
if [ -n "${INPUT_COMMITMESSAGE}" ]; then
|
||||||
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_REPOSITORY}@${GITHUB_SHA}"
|
BASE_COMMIT_MESSAGE="${INPUT_COMMITMESSAGE}"
|
||||||
else
|
else
|
||||||
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
|
BASE_COMMIT_MESSAGE="Automated deployment: $(date -u)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${EXTERNAL_REPOSITORY}" ]; then
|
||||||
|
COMMIT_MESSAGE="${BASE_COMMIT_MESSAGE} ${GITHUB_REPOSITORY}@${GITHUB_SHA}"
|
||||||
|
else
|
||||||
|
COMMIT_MESSAGE="${BASE_COMMIT_MESSAGE} ${GITHUB_SHA}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
|
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user