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 +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed 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 : ^ <Version>(.*)<\/Version>$
19
19
VERSION_STATIC :
20
20
description : Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
21
21
required : false
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class Action {
9
9
this . projectFile = process . env . INPUT_PROJECT_FILE_PATH
10
10
this . packageName = process . env . INPUT_PACKAGE_NAME || process . env . PACKAGE_NAME
11
11
this . versionFile = process . env . INPUT_VERSION_FILE_PATH || process . env . VERSION_FILE_PATH || this . projectFile
12
- this . versionRegex = new RegExp ( process . env . INPUT_VERSION_REGEX || process . env . VERSION_REGEX )
12
+ this . versionRegex = new RegExp ( process . env . INPUT_VERSION_REGEX || process . env . VERSION_REGEX , "m" )
13
13
this . version = process . env . INPUT_VERSION_STATIC || process . env . VERSION_STATIC
14
14
this . tagCommit = JSON . parse ( process . env . INPUT_TAG_COMMIT || process . env . TAG_COMMIT )
15
15
this . tagFormat = process . env . INPUT_TAG_FORMAT || process . env . TAG_FORMAT
You can’t perform that action at this time.
0 commit comments