mirror of
https://github.com/primer/css.git
synced 2024-12-19 20:21:38 +03:00
15 lines
364 B
Plaintext
15 lines
364 B
Plaintext
|
#!/bin/bash
|
||
|
set -e
|
||
|
head=$(git symbolic-ref --short HEAD)
|
||
|
branch=${TRAVIS_PULL_REQUEST_BRANCH:-$head}
|
||
|
expected=${branch/release-/}
|
||
|
actual=$(jq -r .version modules/primer/package.json)
|
||
|
echo "branch: 'release-$expected' vs. primer/package.json '$actual'"
|
||
|
if [[ "$expected" = "$actual" ]]; then
|
||
|
echo "+ match!"
|
||
|
exit 0
|
||
|
else
|
||
|
echo "x mismatch."
|
||
|
exit 1
|
||
|
fi
|