Skip to content

Commit cbc7c7f

Browse files
committed
doc: better ci messages
1 parent 60f5d21 commit cbc7c7f

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

doc/update-gh-pages.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,16 @@ if [[ $(git -C ${repo_path} diff) ]]; then
5353
From https://github.com/bluerobotics/ping-protocol/tree/"$repository_githash
5454
git -C ${repo_path} commit -sm "${COMMIT_MESSAGE}"
5555

56+
echob "Check build type."
57+
# Do not build pull requests
58+
if [ ${TRAVIS_PULL_REQUEST} != "false" ]; then
59+
echo "- Do not deploy PRs."
60+
exit 0
61+
fi
62+
5663
echob "Check branch."
57-
# Don't deploy pull requests or branches other than master
58-
if [ ${TRAVIS_PULL_REQUEST} != "false" ] || [ ${TRAVIS_BRANCH} != "master" ]; then
64+
# Do only build master branch
65+
if [ ${TRAVIS_BRANCH} != "master" ]; then
5966
echo "- Only master branch will be deployed."
6067
exit 0
6168
fi

0 commit comments

Comments
 (0)