-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Push a git tag after a VERSION change
Normally expeditor does a 'git tag' for us when we use 'built_in:bump_version' but in this case we are doing the version bump on our own since sometimes we do a major/minor bump based on the the date. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# This gets run as a post-commit hook after merge to add the version tag so it | ||
# is easy to determine what changes are in a particular build. | ||
# | ||
# https://expeditor.chef.io/docs/reference/action-filters/#post-commit | ||
|
||
|
||
VERSION=`cat VERSION` | ||
|
||
git tag $VERSION | ||
git push origin $VERSION |