/
action.yaml
38 lines (30 loc) · 985 Bytes
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Validate Semantic Version
description: Ensure the given version complies with semantic versioning.
author: Matthew Usurp
branding:
color: purple
icon: tag
runs:
using: node20
main: build/action.cjs
inputs:
version:
required: true
description: |
The version you wish to validate.
This can be semantic version compliant string with or without the "v" prefix.
Optionally this can be a "git-ref" pointing to a tag where the tag name is a semver compliant version string.
outputs:
version:
description: |
The version after it has been cleansed and validated.
This value has been stripped of any prefixes and is a raw semver string without the "v" prefix.
major:
description: |
The major version extracted from the resolved version.
minor:
description: |
The minor version extracted from the resolved version.
patch:
description: |
The patch version extracted from the resolved version.