callowayproject/bump-my-version

Bumping patch adds a second `-beta` to `pyproject.toml`

Closed this issue · 3 comments

  • bump-my-version version: 0.15.3
  • Python version: Python3.12
  • Operating System: Ubuntu LTS 22.04

Description

I have a CI action that automatically bumps the patch version when changes are seen in the codebase of my project. Last month, this action bumped the patch version in affected files (0.7.24-beta0.7.25-beta), but added an extra -beta in the version string listed in my pyproject.toml (i.e. 0.7.24-beta0.7.25-beta-beta). This caused further actions to fail.

What I Did

$ bump-my-version bump patch

Additional Information

See: Ouranosinc/xscen@e21e15b
Action run: https://github.com/Ouranosinc/xscen/actions/runs/7267026398/job/19799964307

I've had difficulty reproducing your error in my test suite. Could you run bump-my-version bump --dry-run -vv patch and paste in the result?

I'm closing this for now, since you haven't responded with more details and I can't reproduce.

Feel free to re-open this with more information.

Hi, sorry for that, it seems like it happened only once, and I couldn't reproduce it either. I imagine this has been addressed in some way since v0.15.3. Thanks!