This is an automated email from the ASF dual-hosted git repository.

kontinuation pushed a commit to branch branch-0.1.0
in repository https://gitbox.apache.org/repos/asf/sedona-db.git


The following commit(s) were added to refs/heads/branch-0.1.0 by this push:
     new 3a63555  Fix version number when running python-wheel pipeline on 
branch-X.Y.Z
3a63555 is described below

commit 3a63555b744557b335558585125c43ef42cd9f3f
Author: Kristin Cowalcijk <[email protected]>
AuthorDate: Mon Sep 22 19:38:44 2025 +0800

    Fix version number when running python-wheel pipeline on branch-X.Y.Z
---
 .github/workflows/python-wheels.yml | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/python-wheels.yml 
b/.github/workflows/python-wheels.yml
index 302cef5..441d7b0 100644
--- a/.github/workflows/python-wheels.yml
+++ b/.github/workflows/python-wheels.yml
@@ -127,8 +127,15 @@ jobs:
           path: vcpkg
 
       - name: Set SedonaDB dev version
+        shell: bash
         run: |
-          python ci/scripts/set_dev_version.py
+          # Set the unique development version anywhere except a release branch
+          if [[ "${GITHUB_REF##*/}" =~ ^branch-[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+            version="${GITHUB_REF##*/branch-}"
+            echo "${version}"
+          else
+            python ci/scripts/set_dev_version.py
+          fi
 
       - name: Build and test wheels (sedonadb)
         run: |
@@ -168,8 +175,15 @@ jobs:
         run: python -m pip install cibuildwheel==3.1.4
 
       - name: Set SedonaDB dev version
+        shell: bash
         run: |
-          python ci/scripts/set_dev_version.py
+          # Set the unique development version anywhere except a release branch
+          if [[ "${GITHUB_REF##*/}" =~ ^branch-[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+            version="${GITHUB_REF##*/branch-}"
+            echo "${version}"
+          else
+            python ci/scripts/set_dev_version.py
+          fi
 
       - name: Build and test wheels (sedonadb)
         run: |

Reply via email to