From 8cb56bf777de507196565a178bd01e5ffa0ddc5c Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 11 Apr 2018 23:02:59 +0800 Subject: [PATCH] Update documentation only on master branch --- scripts/update-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-docs.sh b/scripts/update-docs.sh index e9a342b..59e8033 100644 --- a/scripts/update-docs.sh +++ b/scripts/update-docs.sh @@ -17,7 +17,7 @@ git --no-pager diff --stat git add . git commit -m "[CI] Update documentation at $(date +'%Y-%m-%d %H:%M:%S %z')" -if [ "${TRAVIS_COMMIT_MESSAGE}" = Merge* ] && [ -n "$DANGER_GITHUB_API_TOKEN" ]; then +if [ "${TRAVIS_COMMIT_MESSAGE}" = Merge* ] && [ "${TRAVIS_BRANCH}" = "master" ] && [ -n "$DANGER_GITHUB_API_TOKEN" ]; then echo "Updating gh-pages..." git remote add upstream "https://${DANGER_GITHUB_API_TOKEN}@github.com/polydice/ICInputAccessory.git" git push --quiet upstream HEAD:gh-pages