Created
January 11, 2018 19:47
-
-
Save patrickporto/c5837d25e13cc48482200c8260f219ff to your computer and use it in GitHub Desktop.
git hook for update the library version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VERSION=$(git describe --always --tag) | |
sed -i "s/version='.*'/version='0.1.2'/g" setup.py | |
git add setup.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment