Skip to content

ci: 👷 add workflow to update version #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .cz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tool.commitizen]
bump_message = "build(version): update version from $current_version to $new_version [skip ci]"
# Don't implement yet.
update_changelog_on_bump = false
version_provider = "poetry"
version_files = [
"pyproject.toml"
]
2 changes: 2 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ group:
dest: justfile
- source: poetry.toml
dest: poetry.toml
- source: .cz.toml
dest: .cz.toml
- source: ruff.toml
dest: ruff.toml
- source: LICENSE.md
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Update version

on:
pull_request:
types:
- closed
branches:
- main
Comment on lines +4 to +8
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this will work or not. I'd like it to only run after we merge a PR, which would hopefully minimize security issues since this workflows pushes to the main (protected) branch.


jobs:
update-version:
if: github.event.pull_request.merged == true
uses: seedcase-project/.github/.github/workflows/reusable-update-python-project-version.yml@main
secrets:
update-version-gh-token: ${{ secrets.UPDATE_VERSION_TOKEN }}
Loading