-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(release-python-package)🔧: Replace bumpversion with bump2vers…
…ion in GitHub Actions workflow - Change the tool installation from bumpversion to bump2version. - Update all references of bumpversion to bump2version in the workflow commands.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,17 +52,17 @@ jobs: | |
|
||
- name: Set up Python | ||
run: | | ||
uv tool install bumpversion | ||
uv tool install bump2version | ||
- name: Set version name | ||
run: echo "VERSION_NAME=${{ github.event.inputs.version_name || env.DEFAULT_VERSION_NAME }}" >> $GITHUB_ENV | ||
|
||
- name: Dry run bumpversion | ||
- name: Dry run bump2version | ||
run: | | ||
bumpversion --dry-run ${{ env.VERSION_NAME }} --allow-dirty --verbose | ||
bump2version --dry-run ${{ env.VERSION_NAME }} --allow-dirty --verbose | ||
- name: Store new version number | ||
run: echo "version_number=`bumpversion --dry-run --list ${{ env.VERSION_NAME }} | grep new_version | sed -r s,"^.*=",,`" >> $GITHUB_ENV | ||
run: echo "version_number=`bump2version --dry-run --list ${{ env.VERSION_NAME }} | grep new_version | sed -r s,"^.*=",,`" >> $GITHUB_ENV | ||
|
||
- name: Display new version number | ||
run: | | ||
|
@@ -77,8 +77,8 @@ jobs: | |
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Run bumpversion | ||
run: bumpversion ${{ env.VERSION_NAME }} --verbose | ||
- name: Run bump2version | ||
run: bump2version ${{ env.VERSION_NAME }} --verbose | ||
|
||
- name: Ensure tag creation | ||
run: git tag | grep ${{ env.version_number }} | ||
|