Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
patch: more quations
Browse files Browse the repository at this point in the history
  • Loading branch information
bgokden committed Nov 28, 2019
1 parent 8ec6cfd commit 7b626ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
command: |
VERSION=$(cat ./artifacts/version.txt)
rm ./artifacts/version.txt
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} --recreate ./artifacts/
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
workflows:
version: 2
main:
Expand Down
12 changes: 6 additions & 6 deletions semver_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ get_semantic_version_from_git () {
}

set_semantic_version_to_git () {
local tag_version=$1
local tag_message=$2
local tag_version="$1"
local tag_message="$2"
if [ -z "$tag_message" ]
then
tag_message="Release for version ${NEW_VERSION}"
fi
git tag -a ${tag_version} -m "${tag_message}"
git push origin ${tag_version}
git tag -a "${tag_version}" -m "${tag_message}"
git push origin "${tag_version}"
}

get_increment_semantic_type_from_git() {
Expand Down Expand Up @@ -90,7 +90,7 @@ get_increment_semantic_type_from_string() {
}

get_release_message_from_string() {
local message=$1
local message="$1"
if [[ $message =~ ^(major|MAJOR): ]]; then
echo ${message#*:}
elif [[ $message =~ ^(minor|MINOR): ]]; then
Expand Down Expand Up @@ -205,7 +205,7 @@ echo "New version will be $new_version with message: $version_message"

case ${version_output} in
git )
$(set_semantic_version_to_git $new_version $version_message)
$(set_semantic_version_to_git "$new_version" "$version_message")
;;
esac

Expand Down

0 comments on commit 7b626ed

Please sign in to comment.