1
0
Fork 0
mirror of https://github.com/actions/setup-java synced 2024-12-22 13:12:43 +00:00

Pass undefined when empty

This commit is contained in:
Bryan Clark 2019-12-19 14:20:17 -08:00
parent 0e5545ead5
commit 7e36086f36
2 changed files with 6 additions and 6 deletions

6
dist/index.js generated vendored
View file

@ -3878,9 +3878,9 @@ function run() {
yield installer.getJava(version, arch, jdkFile, javaPackage);
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
const id = core.getInput('server-id', { required: false });
const username = core.getInput('server-username', { required: false });
const password = core.getInput('server-password', { required: false });
const id = core.getInput('server-id', { required: false }) || undefined;
const username = core.getInput('server-username', { required: false }) || undefined;
const password = core.getInput('server-password', { required: false }) || undefined;
yield auth.configAuthentication(id, username, password);
}
catch (error) {

View file

@ -18,9 +18,9 @@ async function run() {
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
const id = core.getInput('server-id', {required: false});
const username = core.getInput('server-username', {required: false});
const password = core.getInput('server-password', {required: false});
const id = core.getInput('server-id', {required: false}) || undefined;
const username = core.getInput('server-username', {required: false}) || undefined;
const password = core.getInput('server-password', {required: false}) || undefined;
await auth.configAuthentication(id, username, password);
} catch (error) {