Skip to content

Commit 3adbe7e

Browse files
authored
Another fix to update-version (#663)
Adds necessary missing variables
1 parent 8406f24 commit 3adbe7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/release/update-version.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ CURRENT_TAG=$(git tag --merged HEAD | grep -xE '^v.*' | sort --version-sort | ta
1616
# Get <major>.<minor> for next version
1717
NEXT_MAJOR=$(echo "$NEXT_FULL_TAG" | awk '{split($0, a, "."); print a[1]}')
1818
NEXT_MINOR=$(echo "$NEXT_FULL_TAG" | awk '{split($0, a, "."); print a[2]}')
19+
NEXT_PATCH=$(echo "$NEXT_FULL_TAG" | awk '{split($0, a, "."); print a[3]}')
1920
NEXT_SHORT_TAG=${NEXT_MAJOR}.${NEXT_MINOR}
2021

2122
# Need to distutils-normalize the original version
2223
NEXT_SHORT_TAG_PEP440=$(python -c "from packaging.version import Version; print(Version('${NEXT_SHORT_TAG}'))")
24+
PATCH_PEP440=$(python -c "from packaging.version import Version; print(Version('${NEXT_PATCH}'))")
2325

2426
echo "Preparing release $CURRENT_TAG => $NEXT_FULL_TAG"
2527

0 commit comments

Comments
 (0)