aboutsummaryrefslogtreecommitdiff
path: root/util/travis_compiled_push.sh
diff options
context:
space:
mode:
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 b70999c72..8025ccb8f 100644
--- a/util/travis_compiled_push.sh
+++ b/util/travis_compiled_push.sh
@@ -20,7 +20,8 @@ increment_version ()
20NEFM=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -Ev '^(keyboards/)' | wc -l) 20NEFM=$(git diff --name-only -n 1 ${TRAVIS_COMMIT_RANGE} | grep -Ev '^(keyboards/)' | wc -l)
21if [[ $NEFM -gt 0 ]] ; then 21if [[ $NEFM -gt 0 ]] ; then
22 echo "Essential files modified." 22 echo "Essential files modified."
23 lasttag=$(git tag | grep -Ev '\-' | head -1) 23 git fetch --tags
24 lasttag=$(git tag | grep -Ev '\-' | xargs -I@ git log --format=format:"%ai @%n" -1 @ | sort | awk '{print $4}' | tail -1)
24 newtag=$(increment_version $lasttag) 25 newtag=$(increment_version $lasttag)
25 git tag $newtag 26 git tag $newtag
26 git push --tags -q https://$GH_TOKEN@github.com/qmk/qmk_firmware 27 git push --tags -q https://$GH_TOKEN@github.com/qmk/qmk_firmware