Skip to content

Commit 8cb56bf

Browse files
committed
Update documentation only on master branch
1 parent 3722ccb commit 8cb56bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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_COMMIT_MESSAGE}" = Merge* ] && [ -n "$DANGER_GITHUB_API_TOKEN" ]; then
20+
if [ "${TRAVIS_COMMIT_MESSAGE}" = Merge* ] && [ "${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)