1
1
mirror of https://github.com/primer/css.git synced 2024-12-23 06:01:54 +03:00
css/script/after_success

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