Commit 7e36086f authored by Bryan Clark's avatar Bryan Clark
Browse files

Pass undefined when empty

parent 0e5545ea
Loading
Loading
Loading
Loading

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+3 −3
Changes for src/setup-java.ts: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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) {