Skip to content

Commit

Permalink
Merge pull request #389 from primer/alpha_release_always
Browse files Browse the repository at this point in the history
Publish alpha release any time we're not on a release branch or master
  • Loading branch information
jonrohan authored Nov 2, 2017
2 parents 50313f1 + 1f9ada9 commit e314b6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/after_success
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e314b6f

Please sign in to comment.