mirror of
https://github.com/actions/setup-java.git
synced 2024-11-14 14:08:05 +00:00
Pass undefined when empty
This commit is contained in:
parent
0e5545ead5
commit
7e36086f36
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user