We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 550b2fd + 06ea36e commit 2b1f81eCopy full SHA for 2b1f81e
1 file changed
bumpversion.sh
@@ -4,9 +4,9 @@ set -euxo pipefail
4
5
main() {
6
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
+ bump2version --current-version $(git describe) \
+ --tag --tag-name {new_version} --tag-message 'Bump version to {new_version}' patch
+ git push --tags
10
11
exit 0
12
}
0 commit comments