1
1
mirror of https://github.com/primer/css.git synced 2024-12-19 04:01:49 +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