mirror of
				https://gitea.com/actions/setup-java.git
				synced 2025-10-29 07:47:09 +00:00 
			
		
		
		
	Pass undefined when empty
This commit is contained in:
		
							
								
								
									
										6
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -3878,9 +3878,9 @@ function run() { | |||||||
|             yield installer.getJava(version, arch, jdkFile, javaPackage); |             yield installer.getJava(version, arch, jdkFile, javaPackage); | ||||||
|             const matchersPath = path.join(__dirname, '..', '.github'); |             const matchersPath = path.join(__dirname, '..', '.github'); | ||||||
|             console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`); |             console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`); | ||||||
|             const id = core.getInput('server-id', { required: false }); |             const id = core.getInput('server-id', { required: false }) || undefined; | ||||||
|             const username = core.getInput('server-username', { required: false }); |             const username = core.getInput('server-username', { required: false }) || undefined; | ||||||
|             const password = core.getInput('server-password', { required: false }); |             const password = core.getInput('server-password', { required: false }) || undefined; | ||||||
|             yield auth.configAuthentication(id, username, password); |             yield auth.configAuthentication(id, username, password); | ||||||
|         } |         } | ||||||
|         catch (error) { |         catch (error) { | ||||||
|   | |||||||
| @@ -18,9 +18,9 @@ async function run() { | |||||||
|     const matchersPath = path.join(__dirname, '..', '.github'); |     const matchersPath = path.join(__dirname, '..', '.github'); | ||||||
|     console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`); |     console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`); | ||||||
|  |  | ||||||
|     const id = core.getInput('server-id', {required: false}); |     const id = core.getInput('server-id', {required: false}) || undefined; | ||||||
|     const username = core.getInput('server-username', {required: false}); |     const username = core.getInput('server-username', {required: false}) || undefined; | ||||||
|     const password = core.getInput('server-password', {required: false}); |     const password = core.getInput('server-password', {required: false}) || undefined; | ||||||
|  |  | ||||||
|     await auth.configAuthentication(id, username, password); |     await auth.configAuthentication(id, username, password); | ||||||
|   } catch (error) { |   } catch (error) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Bryan Clark
					Bryan Clark