-
Sub-task
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
False
-
None
-
False
-
Testable
-
No
-
No
-
Pending
-
None
-
-
When the upstream release a new version, we need to create a new release branch that is the same as the main branch
This example script is full automation but I STRONGLY recommend you try this for each repo. Do not use this script for all repos.
for TARGET_REPO_NAME in modelmesh # modelmesh-runtime-adapter rest-proxy odh-model-controller do cd ${SYNC_HOME}/${TARGET_REPO_NAME} git checkout -b ${NEW_RELEASE_BRANCH_NAME} odh/${PRIOR_RELEASE_BRANCH_NAME} git push --set-upstream odh ${NEW_RELEASE_BRANCH_NAME} git merge -X theirs ${TODAY_DATE}_sync_main ## Update version sed "s/main/${NEW_RELEASE_BRANCH_NAME}/g" -i version sed "s/latest/${NEW_ODH_VERSION}/g" -i version sed "s/${PRIOR_TARGET_TAG}/${UPSTREAM_TARGET_TAG}/g" -i version ## Push git add . git commit -S -s -m "Update repo for ${UPSTREAM_TARGET_TAG}" git push --set-upstream origin ${NEW_RELEASE_BRANCH_NAME} done