1
1
mirror of https://github.com/primer/css.git synced 2024-12-19 20:21:38 +03:00
css/script/after_success
2018-06-28 12:36:23 -07:00

12 lines
286 B
Bash
Executable File

#!/bin/bash
set -e
branch=$TRAVIS_PULL_REQUEST_BRANCH
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