From 2f252f67ba627fca45d093d02db7d899e13dca46 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Wed, 10 Feb 2021 16:09:07 -0800 Subject: [PATCH] CI: Fix tag detection --- CI/package-ubuntu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CI/package-ubuntu.sh b/CI/package-ubuntu.sh index 5f6998d66..deb78a662 100755 --- a/CI/package-ubuntu.sh +++ b/CI/package-ubuntu.sh @@ -5,8 +5,9 @@ set -e export GIT_HASH=$(git rev-parse --short HEAD) export PKG_VERSION="1-$GIT_HASH-$BRANCH_SHORT_NAME-git" -if [[ "$BRANCH_FULL_NAME" =~ "^refs/tags/" ]]; then +if [[ $BRANCH_FULL_NAME =~ ^refs/tags/ ]]; then export PKG_VERSION="$BRANCH_SHORT_NAME" + echo "[obs-websocket] Branch is a tag. Setting version to `$PKG_VERSION`." fi cd ./build