Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08937a7751 | ||
|
|
fd02997068 | ||
|
|
127155c640 |
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.11.0
|
FROM alpine:3.11.2
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -117,7 +117,19 @@ git remote add origin "${remote_repo}"
|
|||||||
git add --all
|
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}"
|
|
||||||
|
if [ -n "${INPUT_COMMITMESSAGE}" ]; then
|
||||||
|
BASE_COMMIT_MESSAGE="${INPUT_COMMITMESSAGE}"
|
||||||
|
else
|
||||||
|
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
|
||||||
|
|
||||||
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
|
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
|
||||||
git commit -m "${COMMIT_MESSAGE}" || skip
|
git commit -m "${COMMIT_MESSAGE}" || skip
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user