Change commit message to more meaningful. (#1939)

This commit is contained in:
Kacper Magdziarz
2023-05-19 14:52:05 +02:00
committed by GitHub
parent 182211ee32
commit 6e408235f2

View File

@@ -35,10 +35,10 @@ git add pom.xml
if [[ "${COMMIT_MESSAGE}" =~ \[force[^\]]*\] ]]; then
FORCE_TOKEN=$(echo "${COMMIT_MESSAGE}" | sed "s|^.*\(\[force[^]]*\]\).*$|\1|g")
git commit --allow-empty -m "${FORCE_TOKEN} Update upstream version to ${VERSION}"
git commit --allow-empty -m "${FORCE_TOKEN} Update community-repo version to ${VERSION}"
git push
elif git status --untracked-files=no --porcelain | grep -q '^' ; then
git commit -m "Update upstream version to ${VERSION}"
git commit -m "Update community-repo version to ${VERSION}"
git push
else
echo "Dependencies are already up to date."