This commit is contained in:
Corey Butler 2020-04-01 13:48:54 -05:00
parent 9272761fd8
commit 8ef42b17aa
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,9 @@ inputs:
version:
description: Explicitly set the version here instead of automatically detecting from `package.json`. Useful for non-JavaScript projects where version may be output by a previous action.
required: false
regex_pattern:
description: An optional attribute containing the regular expression used to extract the version number.
required: false
outputs:
tagname:
description: Returns the new tag value. Empty if a tag is not created.

View File

@ -32,7 +32,7 @@ async function run () {
break
case 'regex':
version = (new Regex(root, new RegExp(pattern, 'i'))).version
version = (new Regex(root, new RegExp(core.getInput('regex_pattern', { required: true }), 'i'))).version
break
default: