From 7e36086f368f03a37df27d38609ef98df42adb15 Mon Sep 17 00:00:00 2001 From: Bryan Clark Date: Thu, 19 Dec 2019 14:20:17 -0800 Subject: [PATCH] Pass undefined when empty --- dist/index.js | Bin 158193 -> 158232 bytes src/setup-java.ts | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index be71c59d80e1f31b9dd23c4288afb719de1b5290..4fb758e4adbc0fd5449696ee0202fa80516448d4 100644 GIT binary patch delta 74 zcmex(nRCV!&W0_F1uuCOYHAcp^HNgNGV@YXrWd?q4B2Kb{G5r diff --git a/src/setup-java.ts b/src/setup-java.ts index a50ff55..7614f03 100644 --- a/src/setup-java.ts +++ b/src/setup-java.ts @@ -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) {