mirror of
https://github.com/primer/css.git
synced 2024-12-23 06:01:54 +03:00
12 lines
271 B
Bash
Executable File
12 lines
271 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
branch=$TRAVIS_PULL_REQUEST_BRANCH
|
|
event=$TRAVIS_EVENT_TYPE
|
|
|
|
# only publish canary releases on PRs against dev
|
|
if [[ "$event" = "pull_request" ]] && [[ !("$branch" =~ ^release-.*) ]] && [[ !("$branch" = "master") ]];
|
|
then
|
|
script/release-pr --yes
|
|
fi
|