fortinet/Resolve a version branch
Resolve a version branch by semver strategies. Create one if not exists. Return the head branch and the details of the new version.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | The GitHub token to authorize actions on behalf of users. | yes | — |
| base-branch | The base branch that a versioning branch will be based. | yes | — |
| name-prefix | The name prefix to include in the new branch name. The new branch name format is: <prefix><version>. Example: Rel_branchv1.0.0-rc.1 The version will be retrieved from the base-branch, bumped according to the version-level. | no | rel_ |
| version-level | The level of the semver version. Accepted inputs: major, minor, patch, and prerelease. | no | — |
| pre-id | A valid semver pre-release identifier. Used in command: npm version --preid=<pre-id> If specified, the versioning behavior will become 'premajor', 'preminor', 'prepatch', and 'prerelease'. | no | — |
| custom-version | The custom version to bump to. If specified, it will be used as the version. It needs to be a valid semver format. | no | — |
| pr-number | The pull request number for info retrieval uses. If present, the information will be returned in the action output, and no new branch will be created as opposed to creating a new branch by default without the pr-number. | no | — |
Outputs
| name | description |
|---|---|
| base-branch | The branch that a versioning branch is based. |
| base-version | The version found in the base branch. |
| head-branch | The versioning branch. |
| head-version | The version tag used for the versioning branch. |
| is-new-branch | A boolean indicator for whether the head branch is a new branch or not. |
| is-prerelease | A boolean indicator for whether the version is resolved as a prerelease or not. |
| major | The major version of the new version. |
| minor | The minor version of the new version. |
| patch | The patch version of the new version. |
| pre-id | The non-incremental part of the new version, if it is a prerelase. |
| pre-inc | The incremental part of the new version, if it is a prerelase. |