Skip to content

Commit 2b1f81e

Browse files
authored
Merge pull request #175 from aodn/4328_git_tags_remove_v_prefix
bumpversion: remove the 'v' prefix from git tag
2 parents 550b2fd + 06ea36e commit 2b1f81e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bumpversion.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ set -euxo pipefail
44

55
main() {
66
git fetch --prune origin "+refs/tags/*:refs/tags/*"
7-
NEW_VERSION=$(bump2version --current-version $(git describe) --list --no-commit --tag \
8-
--tag-message 'Bump version to {new_version}' patch | grep -oP '^new_version=\K.*$')
9-
git push origin tag v$NEW_VERSION
7+
bump2version --current-version $(git describe) \
8+
--tag --tag-name {new_version} --tag-message 'Bump version to {new_version}' patch
9+
git push --tags
1010

1111
exit 0
1212
}

0 commit comments

Comments
 (0)