sap/pull-request-semver-bumper
Automated semantic version bumping for Maven, NPM, Python, Helm, and generic projects.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| type | Project type to bump (maven, npm, python, version-file, helm) | yes | — |
| token | GitHub token with permission to fetch PR status and commit changes. ⚠️ Using the default `secrets.GITHUB_TOKEN` means commits pushed by this action are made by the `github-actions[bot]` identity. GitHub intentionally does not re-trigger other workflow runs for such pushes (to prevent infinite loops), so your other status checks (CI, tests, etc.) will NOT run on the version-bump commit. To have other workflows re-run, pass a Personal Access Token (PAT) or a GitHub App token instead of `secrets.GITHUB_TOKEN`. | yes | — |
| dry-run | If true, skip git checkout, pull, and push | no | false |
| default-branch | Override the default branch for version fetching (only effective when dry-run is true). If empty or dry-run is false, uses the PR base branch. | no | "" |
| bump-command | Custom command to update the version | no | — |
| commit-message | Custom commit message for version bump commit | no | chore: bump version to @NEW_VERSION@ |
| git-username | Git username for the commit | no | github-actions[bot] |
| git-useremail | Git user email for the commit | no | github-actions[bot]@users.noreply.github.com |
| post-command | Shell command to run after version bump | no | "" |
| package-json-file | Path to package.json (npm only) | no | package.json |
| pyproject-file | Path to pyproject.toml (python only) | no | pyproject.toml |
| pom-file | Path to pom.xml (maven only) | no | pom.xml |
| version-property-path | JSON path to version property (maven only) | no | ["project","version"] |
| version-file | Path to version file (version-file only) | no | VERSION |
| chart-yaml-file | Path to Chart.yaml (helm only) | no | Chart.yaml |
Outputs
| name | description |
|---|---|
| bumped | True if version was bumped |
| new-version | The new version |
| bumpLevel | The computed SemVer bump level (major, minor, patch) |