Skip to content

Commit c02e17c

Browse files
authored
ci: 👷 add workflow to update version (#20)
## Description Include workflow that will update version based on commit message. ## Reviewer Focus <!-- Select quick/in-depth as necessary --> This PR needs a quick review.
1 parent 39cb33f commit c02e17c

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.cz.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[tool.commitizen]
2+
bump_message = "build(version): update version from $current_version to $new_version [skip ci]"
3+
# Don't implement yet.
4+
update_changelog_on_bump = false
5+
version_provider = "poetry"
6+
version_files = [
7+
"pyproject.toml"
8+
]

.github/sync.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ group:
1515
dest: justfile
1616
- source: poetry.toml
1717
dest: poetry.toml
18+
- source: .cz.toml
19+
dest: .cz.toml
1820
- source: ruff.toml
1921
dest: ruff.toml
2022
- source: LICENSE.md

.github/workflows/update-version.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Update version
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- main
9+
10+
jobs:
11+
update-version:
12+
if: github.event.pull_request.merged == true
13+
uses: seedcase-project/.github/.github/workflows/reusable-update-python-project-version.yml@main
14+
secrets:
15+
update-version-gh-token: ${{ secrets.UPDATE_VERSION_TOKEN }}

0 commit comments

Comments
 (0)