Skip to content

Commit

Permalink
Fix release CI step for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Jan 22, 2024
1 parent 7a640f2 commit 2bd7eab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def date_offset(dt, month_offset=0, day_offset=0, truncate=False):


@invoke.task
def bump_version(ctx, dry_run=False, pre=False):
def bump_version(ctx, dry_run=False, pre=False, dev=False):
current_version = semver.VersionInfo.parse(__version__)

# Prompt the user for version change type
Expand All @@ -279,6 +279,8 @@ def bump_version(ctx, dry_run=False, pre=False):
# Pre-release handling code
if pre:
new_version = new_version.bump_prerelease()
if dev:
new_version = new_version.bump_prerelease(current_version, "dev")

# Update the version file
log("Updating version to %s" % new_version)
Expand Down

0 comments on commit 2bd7eab

Please sign in to comment.