Skip to content

Commit e314b6f

Browse files
authored
Merge pull request #389 from primer/alpha_release_always
Publish alpha release any time we're not on a release branch or master
2 parents 50313f1 + 1f9ada9 commit e314b6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

script/after_success

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/bash
22
set -e
33

4-
branch=$TRAVIS_BRANCH
4+
branch=$TRAVIS_PULL_REQUEST_BRANCH
55
event=$TRAVIS_EVENT_TYPE
66

77
# only publish canary releases on PRs against dev
8-
if [[ "$event" = "pull_request" && "$branch" = "dev" ]]; then
8+
if [[ "$event" = "pull_request" ]] && [[ !("$branch" =~ ^release-.*) ]] && [[ !("$branch" = "master") ]];
9+
then
910
script/release-pr --yes
1011
fi

0 commit comments

Comments
 (0)