snapfi/semver-action
Generate a semantic version
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| bump | Bump strategy for semantic versioning. Can be `auto`, `major`, `minor`, `patch` | no | auto |
| base_version | Version to use as base for the generation, skips version bumps. | no | — |
| prefix | Prefix used to prepend the final version | no | v |
| prerelease_id | Text representing the prerelease identifier | no | pre |
| force_prerelease | Force the generation of a prerelease version. Usually used in trunk-based development where the main branch is always a prerelease version | no | false |
| branch_name | The branch name | no | main |
| repo_dir | The repository path | no | . |
| debug | Enables debug mode | no | false |
Outputs
| name | description |
|---|---|
| semver_tag | The calculdated semantic version |
| is_prerelease | True if calculated tag is prerelease |
| previous_tag | The tag used to calculate next semantic version |
| ancestor_tag | The ancestor tag based on specific pattern |