mirror of
				https://github.com/actions/setup-java.git
				synced 2025-10-31 14:30:53 +00:00 
			
		
		
		
	Code updated to let code accept github token and refactored the code.
This commit is contained in:
		
					parent
					
						
							
								f4f1212c88
							
						
					
				
			
			
				commit
				
					
						6992528a74
					
				
			
		
					 5 changed files with 159 additions and 170 deletions
				
			
		
							
								
								
									
										6
									
								
								dist/cleanup/index.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/cleanup/index.js
									
										
									
									
										vendored
									
									
								
							|  | @ -93676,9 +93676,9 @@ function convertVersionToSemver(version) { | |||
|     return mainVersion; | ||||
| } | ||||
| exports.convertVersionToSemver = convertVersionToSemver; | ||||
| function getGitHubHttpHeaders() { | ||||
|     const token = core.getInput('token'); | ||||
|     const auth = !token ? undefined : `token ${token}`; | ||||
| function getGitHubHttpHeaders(token) { | ||||
|     const resolvedToken = token || core.getInput('token'); | ||||
|     const auth = !resolvedToken ? undefined : `token ${resolvedToken}`; | ||||
|     const headers = { | ||||
|         accept: 'application/vnd.github.VERSION.raw' | ||||
|     }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue