1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 11:17:05 +03:00
css/script/after_success

12 lines
271 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
branch=$TRAVIS_PULL_REQUEST_BRANCH
2017-07-28 23:55:13 +03:00
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