Skip to content

Commit e992c32

Browse files
authored
Parse branch name during code gen including 'x' (#2534)
1 parent bfdae66 commit e992c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ codegen)
6565
if [ -v "$VERSION" ] || [[ -z "$VERSION" ]]; then
6666
# fall back to branch name or `main` if no VERSION is set
6767
branch_name=$(git rev-parse --abbrev-ref HEAD)
68-
if [[ "$branch_name" =~ ^[0-9]+\.[0-9]+ ]]; then
68+
if [[ "$branch_name" =~ ^[0-9]+\.([0-9]+|x) ]]; then
6969
echo -e "\033[36;1mTARGET: codegen -> No VERSION argument found, using branch name: \`$branch_name\`\033[0m"
7070
VERSION="$branch_name"
7171
else

0 commit comments

Comments
 (0)