Releases: iory/github-action-bump-version
Releases · iory/github-action-bump-version
Release list
Release Python Bump Version Action
Bump Version Action
A GitHub Action to automatically bump the version in setup.py or pyproject.toml, commit the changes, tag the commit, and create a Pull Request (PR).
Features
- Supports version bumping for Python projects using
setup.pyorpyproject.toml. - Increments the version based on
major,minor, orpatchbump types. - Commits the updated version file.
- Creates a new branch and pushes it to the repository.
- Opens a Pull Request with customizable labels.
Inputs
| Name | Description | Required | Default |
|---|---|---|---|
bump_type |
Version bump type (major, minor, patch) |
Yes | patch |
github_token |
GitHub token for committing and creating PR | Yes | - |
base_branch |
Base branch for the PR | No | main |
labels |
Comma-separated labels to add to the PR | No | - |
Outputs
| Name | Description |
|---|---|
current_version |
The version before bumping |
new_version |
The new version after bumping |