Skip to content

Commit d9dc195

Browse files
committed
Fix the script to generate docs
1 parent 7e83855 commit d9dc195

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/update-docs.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ 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* ] && [ "${TRAVIS_BRANCH}" = "master" ] && [ -n "$DANGER_GITHUB_API_TOKEN" ]; then
20+
if ! [ -n "$DANGER_GITHUB_API_TOKEN" ]; then
21+
echo "Missing GitHub API token"
22+
elif [ "${TRAVIS_BRANCH}" = "develop" ] && [ "${TRAVIS_PULL_REQUEST}" = false ]; then
2123
echo "Updating gh-pages..."
2224
git remote add upstream "https://${DANGER_GITHUB_API_TOKEN}@github.com/polydice/ICInputAccessory.git"
2325
git push --quiet upstream HEAD:gh-pages

0 commit comments

Comments
 (0)