summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-02-06 16:56:39 -0500
committerJack Humbert <jack.humb@gmail.com>2017-02-06 16:56:39 -0500
commitcf8dac3538feffe4d52c0776456dd67d5787b059 (patch)
treeee77800bff3c130003b9ff71d2acf11157f15ac7 /util
parent98adda34c9095658fcc6a294a13f1264752b4df6 (diff)
downloadqmk_firmware-cf8dac3538feffe4d52c0776456dd67d5787b059.tar.gz
qmk_firmware-cf8dac3538feffe4d52c0776456dd67d5787b059.zip
[skip build] testing travis script
Diffstat (limited to 'util')
-rw-r--r--util/travis_compiled_push.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/travis_compiled_push.sh b/util/travis_compiled_push.sh
index f1b4b2ae59..d0bb0db55e 100644
--- a/util/travis_compiled_push.sh
+++ b/util/travis_compiled_push.sh
@@ -7,6 +7,8 @@ rev=$(git rev-parse --short HEAD)
git config --global user.name "Travis CI"
git config --global user.email "jack.humb+travis.ci@gmail.com"
+if [[ "$TRAVIS_BRANCH" == "master" ]] ; then
+
increment_version ()
{
declare -a part=( ${1//\./ } )
@@ -21,7 +23,7 @@ if [[ $NEFM -gt 0 ]] ; then
lasttag=$(git tag | grep -Ev '\-' | head -1)
newtag=$(increment_version $lasttag)
git tag $newtag
- git push --tags -q https://$GH_TOKEN@github.com/qmk/qmk_firmware-$TRAVIS_BRANCH
+ git push --tags -q https://$GH_TOKEN@github.com/qmk/qmk_firmware-master
else
echo "No essential files modified."
fi
@@ -47,4 +49,6 @@ if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip build]"* ]] ; then
git commit -m "generated from qmk/qmk_firmware@${rev}"
git push
+fi
+
fi \ No newline at end of file