Use better flags and conditionals in CI itself

This commit is contained in:
Joshua M. Boniface 2020-06-12 17:20:01 -04:00
parent 847c9950d7
commit f67b9a01fe
5 changed files with 22 additions and 8 deletions

View file

@ -7,7 +7,7 @@ set -o xtrace
pushd ${SOURCE_DIR}
# get version
if [[ ${GIT_BRANCH} == 'refs/heads/package' ]]; then
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
version="${BUILD_ID}"
else
version="$( grep "version:" ./build.yaml | sed -E 's/version: "([0-9\.]+.*)"/\1/' )"