Skip to content
Snippets Groups Projects
Unverified Commit a8249490 authored by Ben Kochie's avatar Ben Kochie Committed by GitHub
Browse files

Merge pull request #197 from cloudalchemy/paulfantom/fix-release

.circleci: fix getting last commit message during release
parents a646a04a 4bc77722
No related branches found
No related tags found
No related merge requests found
...@@ -55,8 +55,7 @@ jobs: ...@@ -55,8 +55,7 @@ jobs:
- run: git config --global user.name "${GIT_USER}" - run: git config --global user.name "${GIT_USER}"
- run: | - run: |
GIT_TAG=none GIT_TAG=none
echo "Last commit message: ${GIT_COMMIT_DESC}" case "$(git log --format=oneline -n 1 $CIRCLE_SHA1)" in
case "${GIT_COMMIT_DESC}" in
*"[patch]"*|*"[fix]"*|*"[bugfix]"* ) GIT_TAG=$(git semver --next-patch) ;; *"[patch]"*|*"[fix]"*|*"[bugfix]"* ) GIT_TAG=$(git semver --next-patch) ;;
*"[minor]"*|*"[feat]"*|*"[feature]"* ) GIT_TAG=$(git semver --next-minor) ;; *"[minor]"*|*"[feat]"*|*"[feature]"* ) GIT_TAG=$(git semver --next-minor) ;;
*"[major]"*|*"[breaking change]"* ) GIT_TAG=$(git semver --next-major) ;; *"[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