mirror of
https://gitea.com/actions/setup-java.git
synced 2025-11-11 03:16:26 +08:00
generated and pretty files
This commit is contained in:
@@ -29,11 +29,14 @@ function run() {
|
||||
const arch = core.getInput('architecture', { required: true });
|
||||
const jdkFile = core.getInput('jdkFile', { required: false }) || '';
|
||||
yield installer.getJava(version, arch, jdkFile);
|
||||
const username = core.getInput('username', { required: false });
|
||||
const password = core.getInput('password', { required: false });
|
||||
yield auth.configAuthentication(username, password);
|
||||
const matchersPath = path.join(__dirname, '..', '.github');
|
||||
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
|
||||
const id = core.getInput('id', { required: false });
|
||||
const username = core.getInput('username', { required: false });
|
||||
const password = core.getInput('password', { required: false });
|
||||
if (id && username && password) {
|
||||
yield auth.configAuthentication(id, username, password);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
|
||||
Reference in New Issue
Block a user