Skip to content

Commit 7c96f91

Browse files
committed
refactor(release-python-package)🔧: Replace bumpversion with bump2version in GitHub Actions workflow
- Change the tool installation from bumpversion to bump2version. - Update all references of bumpversion to bump2version in the workflow commands.
1 parent 6af34ac commit 7c96f91

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎.github/workflows/release-python-package.yaml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ jobs:
5252

5353
- name: Set up Python
5454
run: |
55-
uv tool install bumpversion
55+
uv tool install bump2version
5656
5757
- name: Set version name
5858
run: echo "VERSION_NAME=${{ github.event.inputs.version_name || env.DEFAULT_VERSION_NAME }}" >> $GITHUB_ENV
5959

60-
- name: Dry run bumpversion
60+
- name: Dry run bump2version
6161
run: |
62-
bumpversion --dry-run ${{ env.VERSION_NAME }} --allow-dirty --verbose
62+
bump2version --dry-run ${{ env.VERSION_NAME }} --allow-dirty --verbose
6363
6464
- name: Store new version number
65-
run: echo "version_number=`bumpversion --dry-run --list ${{ env.VERSION_NAME }} | grep new_version | sed -r s,"^.*=",,`" >> $GITHUB_ENV
65+
run: echo "version_number=`bump2version --dry-run --list ${{ env.VERSION_NAME }} | grep new_version | sed -r s,"^.*=",,`" >> $GITHUB_ENV
6666

6767
- name: Display new version number
6868
run: |
@@ -77,8 +77,8 @@ jobs:
7777
git config user.name github-actions
7878
git config user.email [email protected]
7979
80-
- name: Run bumpversion
81-
run: bumpversion ${{ env.VERSION_NAME }} --verbose
80+
- name: Run bump2version
81+
run: bump2version ${{ env.VERSION_NAME }} --verbose
8282

8383
- name: Ensure tag creation
8484
run: git tag | grep ${{ env.version_number }}

0 commit comments

Comments
 (0)