diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-02-06 17:51:20 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-02-06 17:51:20 -0500 |
commit | 5c8cdfd2b579c198ad37504772e663783f530685 (patch) | |
tree | 61ed2c0f7e28104fe3b6ff4d046ad43af72706b3 /util | |
parent | 246d2583ff5ceacdfcd877ac1b29762773dade0b (diff) |
[skip build] testing travis script
Diffstat (limited to 'util')
-rw-r--r-- | util/travis_compiled_push.sh | 3 |
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 |