fslabs/@ForesightMiningSoftwareCorporation/is-newer-version
Compare semantic versions & detect updates by release type (major, minor, patch) - GitHub Action
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| before | This input represents the original semantic version number to compare against. It should be provided as a string in the format "X.Y.Z" where X, Y, and Z are integers representing the major, minor, and patch versions respectively. | yes | — |
| after | This input represents the new semantic version number to compare against. It should be provided as a string in the same format as the before input. | yes | — |
| release_type | This input specifies the release type to use when comparing the two versions. It should be provided as a string that is either "major", "minor", or "patch". If "major" is selected, the action will consider any change in the major version number to be an update. If "minor" is selected, the action will consider changes in the major or minor version numbers to be an update. Finally, if "patch" is selected, the action will only consider changes in the patch version number to be an update. | no | patch |
Outputs
| name | description |
|---|---|
| newer | A boolean value indicating whether the after version is after the before version given the release type. This will be `true` if the after version is after the before version, and `false` otherwise. |