This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to branch releases-0.12 in repository https://gitbox.apache.org/repos/asf/fory.git
commit 5fb0d2b20c42884f4aaa9e2bb7e5079258af6149 Author: Shawn Yang <[email protected]> AuthorDate: Wed Aug 27 15:11:23 2025 +0800 fix(python): fix bump version (#2536) ## Why? https://github.com/apache/fory/actions/runs/17257989186/job/48973541484 ## What does this PR do? <!-- Describe the details of this PR. --> ## Related issues #2534 #2535 ## Does this PR introduce any user-facing change? <!-- If any user-facing interface changes, please [open an issue](https://github.com/apache/fory/issues/new/choose) describing the need to do so and update the document if necessary. Delete section if not applicable. --> - [ ] Does this PR introduce any public API change? - [ ] Does this PR introduce any binary protocol compatibility change? ## Benchmark <!-- When the PR has an impact on performance (if you don't know whether the PR will have an impact on performance, you can submit the PR first, and if it will have impact on performance, the code reviewer will explain it), be sure to attach a benchmark data here. Delete section if not applicable. --> --- .github/workflows/build-native-release.yml | 5 +---- ci/deploy.sh | 2 +- ci/tasks/python_container_build_script.sh | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-native-release.yml b/.github/workflows/build-native-release.yml index b72c1c380..5131c0686 100644 --- a/.github/workflows/build-native-release.yml +++ b/.github/workflows/build-native-release.yml @@ -57,10 +57,7 @@ jobs: echo "Installed version: $INSTALLED_VERSION" # Verify version matches the tag EXPECTED_VERSION="${{ github.ref_name }}" - EXPECTED_VERSION=${EXPECTED_VERSION#v} - EXPECTED_VERSION="${EXPECTED_VERSION//-alpha/a}" - EXPECTED_VERSION="${EXPECTED_VERSION//-beta/b}" - EXPECTED_VERSION="${EXPECTED_VERSION//-rc/rc}" + EXPECTED_VERSION=$(DEPLOY_QUIET=1 ci/deploy.sh parse_py_version $EXPECTED_VERSION | tail -n1) echo "Expected version: $EXPECTED_VERSION" if [ "$INSTALLED_VERSION" != "$EXPECTED_VERSION" ]; then echo "Version mismatch: Expected $EXPECTED_VERSION but got $INSTALLED_VERSION" diff --git a/ci/deploy.sh b/ci/deploy.sh index 007ccb8a5..be0c38595 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -60,7 +60,7 @@ parse_py_version() { version="${version//-alpha/a}" version="${version//-beta/b}" version="${version//-rc/rc}" - version="${version//-//}" + version="${version//-/}" echo "$version" } diff --git a/ci/tasks/python_container_build_script.sh b/ci/tasks/python_container_build_script.sh index da4032d6e..6ba1f7d80 100644 --- a/ci/tasks/python_container_build_script.sh +++ b/ci/tasks/python_container_build_script.sh @@ -34,7 +34,7 @@ verify_version() { if [ -n "$GITHUB_REF_NAME" ]; then # Strip leading 'v' if present and capture only the actual output, not debug messages local expected_version - expected_version="$(DEPLOY_QUIET=1 ci/deploy.sh parse_py_version $GITHUB_REF_NAME)" + expected_version="$(DEPLOY_QUIET=1 ci/deploy.sh parse_py_version $GITHUB_REF_NAME | tail -n1)" echo "Expected version: $expected_version" if [ "$installed_version" != "$expected_version" ]; then --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
