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:
commit
e314b6f28a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user