We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc02d4 commit f8dd9faCopy full SHA for f8dd9fa
entrypoint.sh
@@ -11,6 +11,11 @@ function print_info() {
11
echo -e "\e[36mINFO: ${1}\e[m"
12
}
13
14
+function skip() {
15
+ print_info "No changes detected, skipping deployment"
16
+ exit 0
17
+}
18
+
19
# check values
20
if [ -n "${ACTIONS_DEPLOY_KEY}" ]; then
21
@@ -76,9 +81,7 @@ git add --all
76
81
print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
77
82
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
78
83
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
79
- git commit -m "${COMMIT_MESSAGE}" || \
80
- (print_info "No changes detected, skipping deployment" && \
- exit 0)
84
+ git commit -m "${COMMIT_MESSAGE}" || skip
85
else
86
git commit --allow-empty -m "${COMMIT_MESSAGE}"
87
fi
0 commit comments