castlabs/Ref to Version
Uses the ref to extract a version
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| versionFile | Specify a path to a json file that has a top level 'version' property, i.e. package.json. The value of that version will be used as a prefix for the output, using '-' as a separator | no | — |
| useVersionFile | Configure if and when a version file should be considered. This takes a comma separated list. The permitted values are 'branch', 'pr', 'tag'. | no | branch,pr |
| createRunVersion | Configure if and when a unique run version should be created using github.run_number and github.run_attempt. The permitted values are 'branch', 'pr', 'tag'. | no | branch,pr |
| versionFileSeparator | Separator used when concatenating the ref and version file versions | no | - |
| from-tag | Pass a tag name and set the output version using the same logic as if it would have been a ref tag. | no | — |
| tagPrefix | A prefix that will be removed from the beginning of the tag name to compute the version name. | no | v |
Outputs
| name | description |
|---|---|
| version | The version extracted from the github ref |
| isTag | Boolean that indicates that a tag version was created |
| isPullRequest | Boolean that indicates that a Pull Request version was created |
| isBranch | Boolean that indicates that a branch version was created |