Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b2e63d

Browse files
committed
CI: Only skip devdocs deploy if PR is to this repo.
There's currently a PR open to some random fork to keep their master branch updated, and Circle (or GitHub, really) tag this in the build information. However, we don't want to skip devdocs deployment if there's a PR on some other repo, only this one.
1 parent 1a2b8e9 commit 5b2e63d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.circleci/deploy-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
if [ "$CIRCLE_PROJECT_USERNAME" != "matplotlib" ] || \
66
[ "$CIRCLE_BRANCH" != "master" ] || \
7-
[ "$CIRCLE_PULL_REQUEST" != "" ]; then
7+
[[ "$CIRCLE_PULL_REQUEST" == https://github.com/matplotlib/matplotlib/pull/* ]]; then
88
echo "Not uploading docs for ${CIRCLE_SHA1}"\
99
"from non-master branch (${CIRCLE_BRANCH})"\
1010
"or pull request (${CIRCLE_PULL_REQUEST})"\

0 commit comments

Comments
 (0)