You've already forked go-template-container-webserver
handle multiple commits
All checks were successful
Update Child Repos / update (push) Successful in 7s
All checks were successful
Update Child Repos / update (push) Successful in 7s
This commit is contained in:
@@ -14,7 +14,11 @@ TEMPLATE_BRANCH="main"
|
||||
CURRENT_COMMIT_ID=$(git rev-parse HEAD)
|
||||
COMMIT_MESSAGE="Template updates (commit: ${CURRENT_COMMIT_ID:0:7})"
|
||||
|
||||
PREVIOUS_COMMIT_ID=$(git log --format="%H" -n 2 HEAD | tail -n 1)
|
||||
PREVIOUS_COMMIT_ID="${1:-}"
|
||||
|
||||
if [ -z "${PREVIOUS_COMMIT_ID}" ]; then
|
||||
PREVIOUS_COMMIT_ID=$(git log --format="%H" -n 2 HEAD | tail -n 1)
|
||||
fi
|
||||
|
||||
if [ "${PREVIOUS_COMMIT_ID}" = "${CURRENT_COMMIT_ID}" ]; then
|
||||
FILES_CHANGED=""
|
||||
|
||||
Reference in New Issue
Block a user