Skip to content

Commit

Permalink
Parse branch name during code gen including 'x' (#2534)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMock authored Dec 10, 2024
1 parent bfdae66 commit e992c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e992c32

Please sign in to comment.