summaryrefslogtreecommitdiffstats
path: root/util/travis_compiled_push.sh
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-02-06 17:51:20 -0500
committerJack Humbert <jack.humb@gmail.com>2017-02-06 17:51:20 -0500
commit5c8cdfd2b579c198ad37504772e663783f530685 (patch)
tree61ed2c0f7e28104fe3b6ff4d046ad43af72706b3 /util/travis_compiled_push.sh
parent246d2583ff5ceacdfcd877ac1b29762773dade0b (diff)
[skip build] testing travis script
Diffstat (limited to 'util/travis_compiled_push.sh')
-rw-r--r--util/travis_compiled_push.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/travis_compiled_push.sh b/util/travis_compiled_push.sh
index b70999c72f..8025ccb8fe 100644
--- a/util/travis_compiled_push.sh
+++ b/util/travis_compiled_push.sh
@@ -20,7 +20,8 @@ increment_version ()
NEFM=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -Ev '^(keyboards/)' | wc -l)
if [[ $NEFM -gt 0 ]] ; then
echo "Essential files modified."
- lasttag=$(git tag | grep -Ev '\-' | head -1)
+ git fetch --tags
+ lasttag=$(git tag | grep -Ev '\-' | xargs -I@ git log --format=format:"%ai @%n" -1 @ | sort | awk '{print $4}' | tail -1)
newtag=$(increment_version $lasttag)
git tag $newtag
git push --tags -q https://$GH_TOKEN@github.com/qmk/qmk_firmware