1
1
mirror of https://github.com/primer/css.git synced 2024-12-11 11:16:04 +03:00
css/script/after_success

12 lines
286 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 non release or master branches
if [[ "$event" = "pull_request" ]] && [[ !("$branch" =~ ^release-.*) ]] && [[ !("$branch" = "master") ]];
then
script/release-pr --yes
fi