Skip to content

Commit

Permalink
build: ensure version before deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydenyer committed Nov 12, 2019
1 parent 9f9c888 commit 390b4fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ github_clone() {
}

ensure_version() {
if [[ -z "$VERSION" ]]; then
VERSION="${TRAVIS_BRANCH//release\/}"
fi

if [[ "$VERSION" = "" ]]; then
echo "ERROR: Missing VERSION specify it using an env variable"
exit 1
Expand Down

0 comments on commit 390b4fd

Please sign in to comment.