mirror of
https://github.com/ButlerLogic/action-autotag.git
synced 2024-11-22 00:01:08 +07:00
WIP
This commit is contained in:
parent
9272761fd8
commit
8ef42b17aa
@ -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.
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user