Skip to content

Commit

Permalink
Pass undefined when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Clark committed Dec 19, 2019
1 parent 0e5545e commit 7e36086
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/setup-java.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7e36086

Please sign in to comment.