mirror of
				https://github.com/actions/setup-java.git
				synced 2025-11-04 08:20:54 +00:00 
			
		
		
		
	Address latest review feedback
This commit is contained in:
		
					parent
					
						
							
								998be8d08f
							
						
					
				
			
			
				commit
				
					
						6924f73ee0
					
				
			
		
					 6 changed files with 390 additions and 387 deletions
				
			
		| 
						 | 
				
			
			@ -19,11 +19,13 @@ async function run() {
 | 
			
		|||
    console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
 | 
			
		||||
 | 
			
		||||
    const id = core.getInput('server-id', {required: false});
 | 
			
		||||
    const username = core.getInput('username', {required: false});
 | 
			
		||||
    const password = core.getInput('password', {required: false});
 | 
			
		||||
    const username = core.getInput('server-username', {required: false});
 | 
			
		||||
    const password = core.getInput('server-password', {required: false});
 | 
			
		||||
 | 
			
		||||
    if (id && username && password) {
 | 
			
		||||
      await auth.configAuthentication(id, username, password);
 | 
			
		||||
    } else if (id || username || password) {
 | 
			
		||||
      console.warn('All 3 server-(id, username, and password) are required.');
 | 
			
		||||
    }
 | 
			
		||||
  } catch (error) {
 | 
			
		||||
    core.setFailed(error.message);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue