trondhindenes/Git-Autoversion
Automatically generate semantic versions based on git repository state
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| config | Path to configuration file (default: .autoversion.yaml) | no | "" |
| config-flags | Configuration flags to pass to autoversion (can be multiple, separated by newlines or commas) | no | "" |
| fail-on-error | Whether to fail the action if version calculation fails | no | true |
| version | Specific version of autoversion to use (default: 1, can be "1", "1.0", "1.0.0", or "latest") | no | 1 |
Outputs
| name | description |
|---|---|
| semver | The calculated semantic version (e.g., 1.0.0 or 1.0.0-pre.0) |
| semverWithPrefix | The calculated semantic version with v prefix (e.g., v1.0.0 or v1.0.0-pre.0) |
| pep440 | The calculated PEP 440 version (e.g., 1.0.0 or 1.0.0a0) |
| pep440WithPrefix | The calculated PEP 440 version with v prefix (e.g., v1.0.0 or v1.0.0a0) |
| major | The major version number (e.g., 1) |
| minor | The minor version number (e.g., 0) |
| patch | The patch version number (e.g., 0) |
| isRelease | Whether this is a release version (true/false) |