Skip to content

Commit

Permalink
chore: skip docs deploy at ci cron (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 authored and fengmk2 committed Aug 2, 2017
1 parent c6e1fdc commit ebbbcd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/doc_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
SOURCE_BRANCH="master"

# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" -o "$TRAVIS_EVENT_TYPE" = "cron" ]; then
echo "Skip deploy, TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST, TRAVIS_BRANCH=$TRAVIS_BRANCH"
exit 0
fi
Expand Down

0 comments on commit ebbbcd5

Please sign in to comment.