Skip to content

Commit af6a924

Browse files
[Backport 8.9] Fix branch name checker for automatic codegen script (#1982)
Co-authored-by: Josh Mock <[email protected]>
1 parent 811e952 commit af6a924

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.ci/make.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ case $CMD in
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" =~ ^\d+\.\d+ ]]; then
69-
echo -e "\033[36;1mTARGET: codegen -> No VERSION found, using branch name: \`$VERSION\`\033[0m"
68+
if [[ "$branch_name" =~ ^[0-9]+\.[0-9]+ ]]; then
69+
echo -e "\033[36;1mTARGET: codegen -> No VERSION argument found, using branch name: \`$branch_name\`\033[0m"
7070
VERSION="$branch_name"
7171
else
72-
echo -e "\033[36;1mTARGET: codegen -> No VERSION found, using \`main\`\033[0m"
72+
echo -e "\033[36;1mTARGET: codegen -> No VERSION argument found, using \`main\`\033[0m"
7373
VERSION="main"
7474
fi
7575
fi

0 commit comments

Comments
 (0)