Skip to content

Commit 7713169

Browse files
authored
Update version parameter
1 parent 15b6394 commit 7713169

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.ci/make.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,8 @@ case $CMD in
6868
TASK_ARGS=("$VERSION" "$output_folder")
6969
;;
7070
codegen)
71-
if [ -v $VERSION ]; then
72-
echo -e "\033[31;1mTARGET: codegen -> missing version parameter\033[0m"
73-
exit 1
74-
fi
75-
echo -e "\033[36;1mTARGET: codegen API v$VERSION\033[0m"
71+
VERSION=$(git rev-parse --abbrev-ref HEAD)
72+
echo -e "\033[36;1mTARGET: codegen API $VERSION\033[0m"
7673
TASK=codegen
7774
# VERSION is BRANCH here for now
7875
TASK_ARGS=("$VERSION" "$codegen_folder")

0 commit comments

Comments
 (0)