This repository was archived by the owner on Oct 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 # VERSION_FILE_PATH: Directory.Build.props
3838
3939 # Regex pattern to extract version info in a capturing group
40- # VERSION_REGEX: <Version>(.*)<\/Version>
40+ # VERSION_REGEX: ^\s* <Version>(.*)<\/Version>\s*$
4141
4242 # Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
4343 # VERSION_STATIC: 1.0.0
@@ -67,7 +67,7 @@ Input | Default Value | Description
6767PROJECT_FILE_PATH | | Filepath of the project to be packaged, relative to root of repository
6868PACKAGE_NAME | | NuGet package id, used for version detection & defaults to project name
6969VERSION_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
7171VERSION_STATIC| | Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
7272TAG_COMMIT | ` true ` | Flag to toggle git tagging, enabled by default
7373TAG_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:
1515 VERSION_REGEX :
1616 description : Regex pattern to extract version info in a capturing group
1717 required : false
18- default : ^<Version>(.*)<\/Version>$
18+ default : ^\s* <Version>(.*)<\/Version>\s* $
1919 VERSION_STATIC :
2020 description : Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
2121 required : false
You can’t perform that action at this time.
0 commit comments