From 0eadfb4b1190faa91a8afbebf8ac321dad15e681 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Tue, 10 Dec 2024 10:31:11 -0600 Subject: [PATCH] Parse branch name during code gen including 'x' --- .github/make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/make.sh b/.github/make.sh index c4d455168..5343c9317 100755 --- a/.github/make.sh +++ b/.github/make.sh @@ -65,7 +65,7 @@ codegen) if [ -v "$VERSION" ] || [[ -z "$VERSION" ]]; then # fall back to branch name or `main` if no VERSION is set branch_name=$(git rev-parse --abbrev-ref HEAD) - if [[ "$branch_name" =~ ^[0-9]+\.[0-9]+ ]]; then + if [[ "$branch_name" =~ ^[0-9]+\.([0-9]+|x) ]]; then echo -e "\033[36;1mTARGET: codegen -> No VERSION argument found, using branch name: \`$branch_name\`\033[0m" VERSION="$branch_name" else