-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
34 lines (34 loc) · 1.18 KB
/
action.yml
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
name: 'Set CSProj Version'
description: 'Sets the current version to a given .csproj'
branding:
icon: anchor
color: blue
inputs:
file:
description: |
'The .csproj from which to read/write the version.'
'Set if you need to read a different file / or different folder.'
required: true
regex:
description: |
'ECMAScript Regular Expression to parse the version string for verification.'
'Defaults to being semver, i.e. "major.minor.patch"'
'Set if you to be compatible with a different, non-semver format.'
required: false
default: '^(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)(\.(?<patch>0|[1-9]\d*))?(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'
xpath:
description: |
'XPath to version element.'
required: false
default: '//PropertyGroup/Version'
version:
description: |
'The semver version to set.'
'Version has to be compatible to the provided regex.'
required: true
outputs:
version:
description: 'Verified and set version string'
runs:
using: 'node12'
main: 'dist/index.js'