mirror of
https://github.com/actions/setup-java.git
synced 2024-11-26 10:21:00 -05:00
Move auth to the bottom of setup
This commit is contained in:
parent
86e89385e5
commit
1b0417032a
1 changed files with 6 additions and 3 deletions
|
@ -15,13 +15,16 @@ async function run() {
|
||||||
|
|
||||||
await installer.getJava(version, arch, jdkFile, javaPackage);
|
await installer.getJava(version, arch, jdkFile, javaPackage);
|
||||||
|
|
||||||
|
const matchersPath = path.join(__dirname, '..', '.github');
|
||||||
|
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
|
||||||
|
|
||||||
const username = core.getInput('username', {required: false});
|
const username = core.getInput('username', {required: false});
|
||||||
const password = core.getInput('password', {required: false});
|
const password = core.getInput('password', {required: false});
|
||||||
|
|
||||||
|
if (username && password) {
|
||||||
await auth.configAuthentication(username, password);
|
await auth.configAuthentication(username, password);
|
||||||
|
}
|
||||||
|
|
||||||
const matchersPath = path.join(__dirname, '..', '.github');
|
|
||||||
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue