mirror of
				https://github.com/ButlerLogic/action-autotag.git
				synced 2025-10-31 07:16:25 +07:00 
			
		
		
		
	WIP
This commit is contained in:
		| @ -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: | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Corey Butler
					Corey Butler