We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e83855 commit d9dc195Copy full SHA for d9dc195
scripts/update-docs.sh
@@ -17,7 +17,9 @@ git --no-pager diff --stat
17
git add .
18
git commit -m "[CI] Update documentation at $(date +'%Y-%m-%d %H:%M:%S %z')"
19
20
-if [ "${TRAVIS_COMMIT_MESSAGE}" = Merge* ] && [ "${TRAVIS_BRANCH}" = "master" ] && [ -n "$DANGER_GITHUB_API_TOKEN" ]; then
+if ! [ -n "$DANGER_GITHUB_API_TOKEN" ]; then
21
+ echo "Missing GitHub API token"
22
+elif [ "${TRAVIS_BRANCH}" = "develop" ] && [ "${TRAVIS_PULL_REQUEST}" = false ]; then
23
echo "Updating gh-pages..."
24
git remote add upstream "https://${DANGER_GITHUB_API_TOKEN}@github.com/polydice/ICInputAccessory.git"
25
git push --quiet upstream HEAD:gh-pages
0 commit comments