diff --git a/script/after_success b/script/after_success index 4de048b3..3932ba06 100755 --- a/script/after_success +++ b/script/after_success @@ -1,10 +1,11 @@ #!/bin/bash set -e -branch=$TRAVIS_BRANCH +branch=$TRAVIS_PULL_REQUEST_BRANCH event=$TRAVIS_EVENT_TYPE # only publish canary releases on PRs against dev -if [[ "$event" = "pull_request" && "$branch" = "dev" ]]; then +if [[ "$event" = "pull_request" ]] && [[ !("$branch" =~ ^release-.*) ]] && [[ !("$branch" = "master") ]]; +then script/release-pr --yes fi