issue-ops/Semantic Version Manager
Handles the semantic versioning tags for a repository
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| allow-prerelease | When `check-only` is set to 'true', this will allow prerelease versions to pass. Defaults to 'true'. | no | true |
| api_url | The GitHub API URL to use. | no | ${{ github.api_url }} |
| check-only | If set to 'true', the action will only check if the version exists and, if so, will fail. Defaults to 'false'. | no | false |
| comment | If set to 'true', the action will comment on the pull request indicating if the version is valid. Defaults to 'true'. | no | true |
| manifest-path | The path to the manifest file that contains the version information, relative to the root of the repository. If not set, then `version` should be set to an explicit version in SemVer 2.0 format. | no | — |
| overwrite | If tags already exist for the specified or inferred version, setting this to 'true' will overwrite them. Defaults to 'false'. | no | false |
| push-tags | If set to 'true', the action will push the tag to the repository. Defaults to 'true'. | no | true |
| ref | The Git ref to tag with the specified or inferred version. This defaults to the base ref of a pull request event trigger. | no | ${{ github.base_ref }} |
| token | GitHub token for authentication | yes | ${{ github.token }} |
| use-version | The version you want to explicitly use (e.g. '1.2.3-beta.4+build.5'). This must follow SemVer standards. If not set, then `manifest-path` should be set so the action can attempt to infer the version from the contents of the repository. | no | — |
| workspace | The path where the repository has been cloned using the `actions/checkout` step. If not set, then `version` should be set to an explicit version. | no | ${{ github.workspace }} |
Outputs
| name | description |
|---|---|
| major-minor-patch | The major, minor, and patch versions (e.g. `1.2.3`) |
| major-minor | The major and minor versions (e.g. `1.2`) |
| major | The major version (e.g. `1` for `1.2.3`) |
| minor | The minor version (e.g. `2` for `1.2.3`) |
| patch | The patch version (e.g. `3` for `1.2.3`) |
| prerelease | The prerelease version (e.g. `alpha.4`) |
| version | The full semantic version (e.g. `1.2.3-alpha.4`) |