This repository was archived by the owner on Oct 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 37
37
# VERSION_FILE_PATH: Directory.Build.props
38
38
39
39
# Regex pattern to extract version info in a capturing group
40
- # VERSION_REGEX: <Version>(.*)<\/Version>
40
+ # VERSION_REGEX: ^\s* <Version>(.*)<\/Version>\s*$
41
41
42
42
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
43
43
# VERSION_STATIC: 1.0.0
@@ -67,7 +67,7 @@ Input | Default Value | Description
67
67
PROJECT_FILE_PATH | | Filepath of the project to be packaged, relative to root of repository
68
68
PACKAGE_NAME | | NuGet package id, used for version detection & defaults to project name
69
69
VERSION_FILE_PATH | ` [PROJECT_FILE_PATH] ` | Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
70
- VERSION_REGEX | ` <Version>(.*)<\/Version> ` | Regex pattern to extract version info in a capturing group
70
+ VERSION_REGEX | ` ^\s* <Version>(.*)<\/Version>\s*$ ` | Regex pattern to extract version info in a capturing group
71
71
VERSION_STATIC| | Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
72
72
TAG_COMMIT | ` true ` | Flag to toggle git tagging, enabled by default
73
73
TAG_FORMAT | ` v* ` | Format of the git tag, ` [*] ` gets replaced with actual version
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ inputs:
15
15
VERSION_REGEX :
16
16
description : Regex pattern to extract version info in a capturing group
17
17
required : false
18
- default : ^<Version>(.*)<\/Version>$
18
+ default : ^\s* <Version>(.*)<\/Version>\s* $
19
19
VERSION_STATIC :
20
20
description : Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
21
21
required : false
You can’t perform that action at this time.
0 commit comments