Skip to content

Commit

Permalink
Fix GH action Final
Browse files Browse the repository at this point in the history
  • Loading branch information
tssweeney committed Sep 11, 2024
1 parent 873aae9 commit 9ddcd85
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/bump_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,10 @@ name: bump-python-sdk-version

on:
workflow_dispatch:
inputs:
bump_type:
description: "Version bump type (major, minor, patch)"
required: true
default: "patch"
options:
- "patch"
- "minor"
- "major"

jobs:
build-assets:
name: Bump Python SDK Version
name: Bump and Tag Python SDK Patch Version
runs-on: ubuntu-8core
timeout-minutes: 10
environment:
Expand All @@ -40,17 +31,17 @@ jobs:
git config --global user.email [email protected]
- id: install_bump
run: pip install --upgrade bump-my-version
- id: bump_version
- id: drop_pre_release
# First we drop the pre-release tag since X.Y.Z-dev0 has lower precedence than X.Y.Z
# This is the commit we will release from
run: |
bump-my-version bump ${{ github.event.inputs.bump_type }} ./weave/version.py --tag --commit
git push
git push --tags
- id: start_next_development_cycle
# This might seem weird to bump patch and then pre_n, but since semver
# dictates that pre-release versions have lower precedence, this ensures
# that the next commit on main will have a pre-release version.
bump-my-version bump pre_l ./weave/version.py --tag --commit
- id: bump_version_and_add_pre_release
# Next we bump the version to the next pre-release version. Effectively
# starting the next development cycle. X.Y.Z -> X.Y.(Z + 1)-dev0
run: |
bump-my-version bump patch ./weave/version.py
bump-my-version bump pre_n ./weave/version.py --commit
bump-my-version bump patch ./weave/version.py --commit
- id: push_changes
run:
git push
git push --tags
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ exclude = [
]

[tool.bumpversion]
current_version = "0.51.3"
current_version = "0.51.4-dev0"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
Expand Down Expand Up @@ -145,5 +145,5 @@ message = "Release version: {current_version} → {new_version}"
commit_args = ""

[tool.bumpversion.parts.pre_l]
values = ["dev"]

values = ["dev", "final"]
optional_value = "final"
2 changes: 1 addition & 1 deletion weave/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
"""

VERSION = "0.51.3"
VERSION = "0.51.4-dev0"

0 comments on commit 9ddcd85

Please sign in to comment.