mxcl/get-swift-version
Sets various outputs for the active Swift version. Optionally provides a `requires` input for enforcing the active version semantically.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| requires | Fails if the active Swift does not satisfy this semantically versioned constraint. | — | — |
Outputs
| name | description |
|---|---|
| version | The semantic version of the active Swift version. |
| major-version | Eg. Outputs `5` for Swift 5.4.1 |
| minor-version | Eg. Outputs `4` for Swift 5.4.1 |
| patch-version | Eg. Outputs `1` for Swift 5.4.1 |
| marketing-version | Eg. Outputs `5.4` for Swift 5.4.1 |