File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,11 @@ case $CMD in
65
65
if [ -v " $VERSION " ] || [[ -z " $VERSION " ]]; then
66
66
# fall back to branch name or `main` if no VERSION is set
67
67
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"
70
70
VERSION=" $branch_name "
71
71
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"
73
73
VERSION=" main"
74
74
fi
75
75
fi
You can’t perform that action at this time.
0 commit comments