mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
Adding maven auth support
This commit is contained in:
parent
081536e071
commit
a3e6ce2153
5 changed files with 167 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
import * as core from '@actions/core';
|
||||
import * as installer from './installer';
|
||||
import * as auth from './auth';
|
||||
import * as path from 'path';
|
||||
|
||||
async function run() {
|
||||
|
@ -14,6 +15,13 @@ async function run() {
|
|||
|
||||
await installer.getJava(version, arch, jdkFile, javaPackage);
|
||||
|
||||
const username = core.getInput('username', {required: false});
|
||||
const password = core.getInput('password', {required: false});
|
||||
|
||||
if (username && password) {
|
||||
await auth.configAuthentication(username, password);
|
||||
}
|
||||
|
||||
const matchersPath = path.join(__dirname, '..', '.github');
|
||||
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue