Created
October 2, 2014 09:22
-
-
Save salgo/8d0631b5c41d09bb47b8 to your computer and use it in GitHub Desktop.
Little bit of bash to create a new tag for a Chef cookbook
This file contains hidden or 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
#!/usr/bin/env bash | |
VERSION=`grep 'version' metadata.rb | grep -o "[0-9.]" | tr -d '\n'''` | |
git tag -a $VERSION -m $VERSION | |
git push origin --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment