mirror of
https://github.com/primer/css.git
synced 2025-01-01 18:53:34 +03:00
do branch urls better, derp
This commit is contained in:
parent
0e90ca80cf
commit
9b4caa84a0
@ -12,7 +12,12 @@ else
|
||||
url=$(cat now-url.txt)
|
||||
version=$(jq -r .version ../modules/primer/package.json)
|
||||
npx commit-status success docs "deployed primer@$version to $url" "$url"
|
||||
alias="primer-css-$TRAVIS_PULL_REQUEST_BRANCH.now.sh"
|
||||
if [[ $TRAVIS_EVENT_TYPE = "pull_request" ]]; then
|
||||
branch=$TRAVIS_PULL_REQUEST_BRANCH
|
||||
else
|
||||
branch=$TRAVIS_BRANCH
|
||||
fi
|
||||
alias="primer-css-$branch.now.sh"
|
||||
echo "aliasing..."
|
||||
$now alias $url $alias
|
||||
url="https://$alias"
|
||||
|
Loading…
Reference in New Issue
Block a user