Skip to content

Instantly share code, notes, and snippets.

@patrickporto
Created January 11, 2018 19:47
Show Gist options
  • Save patrickporto/c5837d25e13cc48482200c8260f219ff to your computer and use it in GitHub Desktop.
Save patrickporto/c5837d25e13cc48482200c8260f219ff to your computer and use it in GitHub Desktop.
git hook for update the library version
#!/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