Compare commits
1 Commits
v2.3.2-rc1
...
v2.3.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f168fea5a |
3
.github/workflows/docker-image-ci.yml
vendored
3
.github/workflows/docker-image-ci.yml
vendored
@@ -1,9 +1,12 @@
|
|||||||
name: docker image ci
|
name: docker image ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize]
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- '**'
|
- '**'
|
||||||
|
- '.**'
|
||||||
- '!LICENSE'
|
- '!LICENSE'
|
||||||
- '!README.md'
|
- '!README.md'
|
||||||
- '!images'
|
- '!images'
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ function print_info() {
|
|||||||
echo -e "\e[36mINFO: ${1}\e[m"
|
echo -e "\e[36mINFO: ${1}\e[m"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function skip() {
|
||||||
|
print_info "No changes detected, skipping deployment"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
# check values
|
# check values
|
||||||
if [ -n "${ACTIONS_DEPLOY_KEY}" ]; then
|
if [ -n "${ACTIONS_DEPLOY_KEY}" ]; then
|
||||||
|
|
||||||
@@ -76,9 +81,7 @@ 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} == "false" ]]; then
|
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
|
||||||
git commit -m "${COMMIT_MESSAGE}" || \
|
git commit -m "${COMMIT_MESSAGE}" || skip
|
||||||
(print_info "No changes detected, skipping deployment" && \
|
|
||||||
exit 0)
|
|
||||||
else
|
else
|
||||||
git commit --allow-empty -m "${COMMIT_MESSAGE}"
|
git commit --allow-empty -m "${COMMIT_MESSAGE}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user