1
1
mirror of https://github.com/primer/css.git synced 2024-12-18 19:51:37 +03:00

Merge pull request #389 from primer/alpha_release_always

Publish alpha release any time we're not on a release branch or master
This commit is contained in:
Jon Rohan 2017-11-02 13:42:03 -07:00 committed by GitHub
commit e314b6f28a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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