Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 7e36086

Browse files
author
Bryan Clark
committed
Pass undefined when empty
1 parent 0e5545e commit 7e36086

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup-java.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ async function run() {
1818
const matchersPath = path.join(__dirname, '..', '.github');
1919
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
2020

21-
const id = core.getInput('server-id', {required: false});
22-
const username = core.getInput('server-username', {required: false});
23-
const password = core.getInput('server-password', {required: false});
21+
const id = core.getInput('server-id', {required: false}) || undefined;
22+
const username = core.getInput('server-username', {required: false}) || undefined;
23+
const password = core.getInput('server-password', {required: false}) || undefined;
2424

2525
await auth.configAuthentication(id, username, password);
2626
} catch (error) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy