-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
50 lines (50 loc) · 1.75 KB
/
action.yml
File metadata and controls
50 lines (50 loc) · 1.75 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
# action.yml
name: 'SemVer 2 Parse'
inputs:
value_to_parse:
description: 'Value to parse'
required: false
default: "${{ github.ref }}"
run_id:
description: 'GitHub run_id, typically defaulted so that it can be pulled from the github context'
required: false
default: "${{ github.run_id }}"
run_number:
description: 'GitHub run_number, typically defaulted so that it can be pulled from the github context'
required: false
default: "${{ github.run_number }}"
run_attempt:
description: 'GitHub run_attempt, typically defaulted so that it can be pulled from the github context'
required: false
default: "${{ github.run_attempt }}"
outputs:
value_to_parse:
description: 'The value to parse'
semver_version:
description: 'The fully matched version'
major_version:
description: 'The major version'
minor_version:
description: 'The minor version'
patch_version:
description: 'The patch version'
pre_release_version:
description: 'The pre-release version'
build_metadata:
description: 'The build metadata'
major_minor_version:
description: 'Returns any matching MajorVersion.MinorVersion pattern whether the input is valid SemVer or not. Useful for development releases whee patch and prerelease values will be provided programmatically.'
fallback_version:
description: 'A best-effort at returning a SemVer-compatible version'
dotnet_assembly_version:
description: 'A version compatible with versioning .NET assemblies'
nuget_version:
description: 'A version compatible with versioning NuGet packages'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.run_id }}
- ${{ inputs.run_number }}
- ${{ inputs.run_attempt }}
- ${{ inputs.value_to_parse }}