Skip to content

Commit a824949

Browse files
authored
Merge pull request cloudalchemy#197 from cloudalchemy/paulfantom/fix-release
.circleci: fix getting last commit message during release
2 parents a646a04 + 4bc7772 commit a824949

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.circleci/config.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ jobs:
5555
- run: git config --global user.name "${GIT_USER}"
5656
- run: |
5757
GIT_TAG=none
58-
echo "Last commit message: ${GIT_COMMIT_DESC}"
59-
case "${GIT_COMMIT_DESC}" in
58+
case "$(git log --format=oneline -n 1 $CIRCLE_SHA1)" in
6059
*"[patch]"*|*"[fix]"*|*"[bugfix]"* ) GIT_TAG=$(git semver --next-patch) ;;
6160
*"[minor]"*|*"[feat]"*|*"[feature]"* ) GIT_TAG=$(git semver --next-minor) ;;
6261
*"[major]"*|*"[breaking change]"* ) GIT_TAG=$(git semver --next-major) ;;

0 commit comments

Comments
 (0)