Skip to content
Snippets Groups Projects
Unverified Commit 4bc77722 authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub
Browse files

.circleci: fix getting last commit message during release

parent a646a04a
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,7 @@ jobs:
- run: git config --global user.name "${GIT_USER}"
- run: |
GIT_TAG=none
echo "Last commit message: ${GIT_COMMIT_DESC}"
case "${GIT_COMMIT_DESC}" in
case "$(git log --format=oneline -n 1 $CIRCLE_SHA1)" in
*"[patch]"*|*"[fix]"*|*"[bugfix]"* ) GIT_TAG=$(git semver --next-patch) ;;
*"[minor]"*|*"[feat]"*|*"[feature]"* ) GIT_TAG=$(git semver --next-minor) ;;
*"[major]"*|*"[breaking change]"* ) GIT_TAG=$(git semver --next-major) ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment