Skip to content

Commit e020ce5

Browse files
authored
Merge pull request #5 from PMEAL/dev
Trying to get bump-version working #minor
2 parents b8beda1 + 883ab53 commit e020ce5

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/bump-version.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Bump Version
22

33
on:
44
push:
5-
branches: [dev, release]
5+
branches: [dev, main]
66

77
jobs:
88
bump:
@@ -34,11 +34,13 @@ jobs:
3434
git commit --amend --no-edit
3535
git push
3636
37-
- name: Bump version (release)
38-
if: github.ref == 'refs/heads/release'
37+
- name: Bump version (main)
38+
if: github.ref == 'refs/heads/main'
3939
run: |
4040
if [[ "${{ github.event.head_commit.message }}" == *"#patch"* ]]; then
4141
uvx bump-my-version bump patch
42+
elif [[ "${{ github.event.head_commit.message }}" == *"#feature"* ]]; then
43+
uvx bump-my-version bump minor
4244
elif [[ "${{ github.event.head_commit.message }}" == *"#minor"* ]]; then
4345
uvx bump-my-version bump minor
4446
elif [[ "${{ github.event.head_commit.message }}" == *"#major"* ]]; then
@@ -50,9 +52,9 @@ jobs:
5052
git push --follow-tags
5153
5254
- name: Merge release back into dev
53-
if: github.ref == 'refs/heads/release'
55+
if: github.ref == 'refs/heads/main'
5456
run: |
5557
git fetch origin dev
5658
git checkout dev
57-
git merge --no-ff origin/release -m "maint: merge release into dev [skip bump]"
59+
git merge --no-ff origin/main -m "maint: merge main into dev [skip bump]"
5860
git push origin dev

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "kabs"
3-
version = "0.0.1-dev22"
3+
version = "0.0.1-dev24"
44
description = "A tool for finding the absolute permeability from a volumetric image using the lattice Boltzmann method"
55
readme = "README.md"
66
requires-python = ">=3.12"
@@ -31,7 +31,7 @@ dev = [
3131
]
3232

3333
[tool.bumpversion]
34-
current_version = "0.0.1-dev22"
34+
current_version = "0.0.1-dev24"
3535
parse = """(?x)
3636
(?P<major>0|[1-9]\\d*)\\.
3737
(?P<minor>0|[1-9]\\d*)\\.

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)