mirror of
				https://github.com/ButlerLogic/action-autotag.git
				synced 2025-10-31 23:36:22 +07:00 
			
		
		
		
	feat: restrict version to tag
This commit is contained in:
		 Tomasz Pluskiewicz
					Tomasz Pluskiewicz
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							ade8d2e19b
						
					
				
				
					commit
					96636b210d
				
			| @ -48,6 +48,12 @@ async function run () { | ||||
|     if (!version) { | ||||
|       throw new Error(`No version identified${msg}`) | ||||
|     } | ||||
|      | ||||
|     const minVersion = core.getInput('minVersion', { required: false }) | ||||
|     if (version < minVersion) { | ||||
|       core.warning(`Version "${version}" is lower than minimum "${minVersion}"`) | ||||
|       return | ||||
|     } | ||||
|  | ||||
|     core.warning(`Recognized "${version}"${msg}`) | ||||
|     core.setOutput('version', version) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user