mirror of
				https://github.com/ButlerLogic/action-autotag.git
				synced 2025-10-31 23:36:22 +07:00 
			
		
		
		
	WIP
This commit is contained in:
		| @ -6,7 +6,7 @@ import gh from '@actions/github' | ||||
| const github = new gh.GitHub(process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN) | ||||
| // Get owner and repo from context of payload that triggered the action | ||||
| const { owner, repo } = gh.context | ||||
| console.log(owner, repo) | ||||
|  | ||||
| export default class Tag { | ||||
|   constructor (prefix, version, postfix) { | ||||
|     this.prefix = prefix | ||||
|  | ||||
| @ -16,6 +16,7 @@ async function run () { | ||||
|     // Identify the tag parsing strategy | ||||
|     const root = core.getInput('root', { required: false }) || core.getInput('package_root', { required: false }) || './' | ||||
|     const strategy = (core.getInput('regex_pattern', { required: false }) || '').trim().length > 0 ? 'regex' : ((core.getInput('strategy', { required: false }) || 'package').trim().toLowerCase()) | ||||
|     core.swarning(`Attempting to use ${strategy} strategy.`) | ||||
|  | ||||
|     // Extract the version number using the supplied strategy | ||||
|     let version = core.getInput('root', { required: false }) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Corey Butler
					Corey Butler