Skip to content

Commit 5fb0d2b

Browse files
committed
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. -->
1 parent 6321977 commit 5fb0d2b

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 ci/deploy.sh 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)