diff --git a/.travis.yml b/.travis.yml index 06e09f68..ec770777 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ install: - npm install script: - - if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; .travis/update-wiki.sh; fi + - .travis/update-wiki.sh env: global: diff --git a/.travis/update-wiki.sh b/.travis/update-wiki.sh index 58d80137..f441770e 100755 --- a/.travis/update-wiki.sh +++ b/.travis/update-wiki.sh @@ -13,5 +13,11 @@ update_wiki() { git push origin } -setup_git -update_wiki +# Only update wiki if on master branch and not pull request +if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ] +then + setup_git + update_wiki +else + echo "Not updating wiki, triggered by pull request or not on master branch" +fi