mirror of
https://github.com/primer/css.git
synced 2024-12-25 15:14:59 +03:00
Publish alpha release any time we're not on a release branch or master
This commit is contained in:
parent
50313f1cf9
commit
1f9ada99af
@ -1,10 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
branch=$TRAVIS_BRANCH
|
branch=$TRAVIS_PULL_REQUEST_BRANCH
|
||||||
event=$TRAVIS_EVENT_TYPE
|
event=$TRAVIS_EVENT_TYPE
|
||||||
|
|
||||||
# only publish canary releases on PRs against dev
|
# 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
|
script/release-pr --yes
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user