Skip to content

Commit

Permalink
CI: Fix tag detection
Browse files Browse the repository at this point in the history
  • Loading branch information
tt2468 committed Feb 11, 2021
1 parent 9e554ce commit 2f252f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CI/package-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f252f6

Please sign in to comment.