Skip to content

Commit 0fde41d

Browse files
committed
Update docs only on the master branch
1 parent 8714600 commit 0fde41d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ matrix:
55
- env: VERSION=9.3
66
- env: VERSION=latest
77
before_script:
8-
- bundle exec danger
8+
- if [ -n "$DANGER_GITHUB_API_TOKEN" ]; then bundle exec danger; fi
99
script:
1010
- bundle exec rake ci:build[$VERSION]
1111
- make -B carthage

scripts/update-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ git --no-pager diff --stat
1717
git add .
1818
git commit -m "[CI] Update documentation at $(date +'%Y-%m-%d %H:%M:%S %z')"
1919

20-
if [ "${TRAVIS_BRANCH}" = "develop" ]; then
20+
if [ "${TRAVIS_BRANCH}" = "master" ] && [ -n "$DANGER_GITHUB_API_TOKEN" ]; then
2121
echo "Updating gh-pages..."
2222
git remote add upstream "https://${DANGER_GITHUB_API_TOKEN}@github.com/polydice/ICInputAccessory.git"
2323
git push --quiet upstream HEAD:gh-pages

0 commit comments

Comments
 (0)