Add generated auth and setup-java

This commit is contained in:
Bryan Clark 2019-11-20 10:25:37 -08:00
parent 56eacf97f5
commit 86e89385e5
2 changed files with 29 additions and 17 deletions

View file

@ -31,9 +31,7 @@ function run() {
yield installer.getJava(version, arch, jdkFile);
const username = core.getInput('username', { required: false });
const password = core.getInput('password', { required: false });
if (username && password) {
yield auth.configAuthentication(username, password);
}
yield auth.configAuthentication(username, password);
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
}