travis-push: only push on master branch

fixes #1683
This commit is contained in:
Tony Theodore 2018-03-18 21:28:16 +11:00
parent 1bc2e4c181
commit 97ddd29ccc
1 changed files with 1 additions and 1 deletions

View File

@ -9,4 +9,4 @@ git config credential.helper "store --file=.git/credentials"
echo "https://${GH_TOKEN}:@github.com" > .git/credentials
git remote set-url origin 'https://github.com/mxe/mxe.git'
git commit -a -m 'Update packages.json & build-matrix.html' || true
git push origin HEAD:master
[ `git rev-parse --abbrev-ref HEAD` == master ] && git push origin HEAD:master