Skip to content

Commit 49205e2

Browse files
committed
fix bump version
1 parent e676ee7 commit 49205e2

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/build-native-release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ jobs:
5757
echo "Installed version: $INSTALLED_VERSION"
5858
# Verify version matches the tag
5959
EXPECTED_VERSION="${{ github.ref_name }}"
60-
EXPECTED_VERSION=${EXPECTED_VERSION#v}
61-
EXPECTED_VERSION="${EXPECTED_VERSION//-alpha/a}"
62-
EXPECTED_VERSION="${EXPECTED_VERSION//-beta/b}"
63-
EXPECTED_VERSION="${EXPECTED_VERSION//-rc/rc}"
60+
EXPECTED_VERSION=$(DEPLOY_QUIET=1 hci/deploy.s parse_py_version $EXPECTED_VERSION | tail -n1)
6461
echo "Expected version: $EXPECTED_VERSION"
6562
if [ "$INSTALLED_VERSION" != "$EXPECTED_VERSION" ]; then
6663
echo "Version mismatch: Expected $EXPECTED_VERSION but got $INSTALLED_VERSION"

ci/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ parse_py_version() {
6060
version="${version//-alpha/a}"
6161
version="${version//-beta/b}"
6262
version="${version//-rc/rc}"
63-
version="${version//-//}"
63+
version="${version//-/}"
6464
echo "$version"
6565
}
6666

ci/tasks/python_container_build_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ verify_version() {
3434
if [ -n "$GITHUB_REF_NAME" ]; then
3535
# Strip leading 'v' if present and capture only the actual output, not debug messages
3636
local expected_version
37-
expected_version="$(DEPLOY_QUIET=1 ci/deploy.sh parse_py_version $GITHUB_REF_NAME)"
37+
expected_version="$(DEPLOY_QUIET=1 ci/deploy.sh parse_py_version $GITHUB_REF_NAME | tail -n1)"
3838
echo "Expected version: $expected_version"
3939

4040
if [ "$installed_version" != "$expected_version" ]; then

0 commit comments

Comments
 (0)