Skip to content

Commit

Permalink
Update documentation only on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bcylin committed Apr 11, 2018
1 parent 3722ccb commit 8cb56bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cb56bf

Please sign in to comment.