add dev version

This commit is contained in:
Michael Duong 2023-09-17 13:02:08 +00:00
parent 5f0924e61a
commit 1443aa3ef8

View file

@ -187,7 +187,7 @@ jobs:
git config user.name "Github-Bot"
git config user.email "Github-Bot@no-reply.com"
latest_dev_version=$(gto history temp --asc --plain | awk '{print $NF}' | awk '/dev/')
latest_dev_version=$(gto history ${REGISTER_MODEL_NAME} --asc --plain | awk '{print $NF}' | awk '/dev/')
if [ -z "${latest_dev_version}" ]; then
increment_version="1"
else
@ -196,6 +196,8 @@ jobs:
new_tag=${REGISTER_MODEL_NAME}#dev#${increment_version}
echo ${new_tag}
git pull #Get new model registry md file changes
git tag -a ${new_tag} -m "Registering Latest Version to Dev"
git push origin ${new_tag}