forked from KageKirin/get-csproj-version
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
33 lines (31 loc) · 1.06 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
name: Get CSProj Version Fork
description: Retrieves the current version from a given .csproj
branding:
icon: anchor
color: yellow
inputs:
file:
description: |
'The .csproj from which to read 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
outputs:
version:
description: Retrieved and verified version string
runs:
using: node20
main: dist/index.js