Skip to content

Commit a481736

Browse files
authored
INPYTHON-592 Fix Release Version Bump Handling (#301)
1 parent 01967be commit a481736

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/scripts/bump-version.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -eu
3+
4+
CURRENT_VERSION=$(NO_EXT=1 python setup.py --version)
5+
sed -i '' "s/__version__ = \"${CURRENT_VERSION}\"/__version__ = \"$1\"/" "pymongoarrow/version.py"

.github/workflows/release-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
- uses: mongodb-labs/drivers-github-tools/python-labs/post-publish@v2
121121
with:
122122
following_version: ${{ env.FOLLOWING_VERSION }}
123+
version_bump_script: ./../../.github/scripts/bump-version.sh
123124
product_name: ${{ env.PRODUCT_NAME }}
124125
token: ${{ github.token }}
125126
dry_run: ${{ env.DRY_RUN }}

0 commit comments

Comments
 (0)