Add tag-push script

pull/109/head
Zach Riggle 9 years ago
parent 7bdec11e6d
commit 3460f886a1

@ -0,0 +1,13 @@
#!/bin/sh
git fetch --all
LAST_TAG=$(git log --tags -1 --pretty='%h')
COMMITS=$(git log $LAST_TAG..origin/master)
TAG=$(date '+%Y.%m.%d')
if [ -n "$COMMITS" ]; then
git tag $TAG origin/master
git push origin $TAG
fi
Loading…
Cancel
Save