File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 ;;
5959python)
6060# Renovate: datasource=github-tags depName=OpenAPITools/openapi-generator versioning=semver
61- GENERATOR_VERSION=" v7.9 .0"
61+ GENERATOR_VERSION=" v7.13 .0"
6262 ;;
6363* )
6464 echo " SDK language not supported."
@@ -91,8 +91,8 @@ python)
9191 echo -e " \n>> Generating the Python SDK..."
9292
9393 source ${LANGUAGE_GENERATORS_FOLDER_PATH} /${LANGUAGE} .sh
94- # Usage: generate_python_sdk GENERATOR_PATH GIT_HOST GIT_USER_ID [GIT_REPO_ID] [SDK_REPO_URL]
95- generate_python_sdk ${jar_path} ${GIT_HOST} ${GIT_USER_ID} ${GIT_REPO_ID} ${SDK_REPO_URL}
94+ # Usage: generate_python_sdk GENERATOR_PATH GIT_HOST GIT_USER_ID [GIT_REPO_ID] [SDK_REPO_URL] [SDK_BRANCH]
95+ generate_python_sdk " ${jar_path} " " ${GIT_HOST} " " ${GIT_USER_ID} " " ${GIT_REPO_ID} " " ${SDK_REPO_URL} " " ${SDK_BRANCH} "
9696 ;;
9797* )
9898 echo " ! SDK language not supported."
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ generate_python_sdk() {
2121 # Optional parameters
2222 local GIT_REPO_ID=$4
2323 local SDK_REPO_URL=$5
24+ local SDK_BRANCH=$6
2425
2526 # Check required parameters
2627 if [[ -z ${GIT_HOST} ]]; then
@@ -54,7 +55,7 @@ generate_python_sdk() {
5455 echo " Old SDK repo clone was found, it will be removed."
5556 rm -rf ${SDK_REPO_LOCAL_PATH}
5657 fi
57- git clone --quiet ${SDK_REPO_URL} ${SDK_REPO_LOCAL_PATH}
58+ git clone --quiet -b ${SDK_BRANCH} ${SDK_REPO_URL} ${SDK_REPO_LOCAL_PATH}
5859
5960 # Install SDK project tools
6061 cd ${ROOT_DIR}
You can’t perform that action at this time.
0 commit comments