mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 09:26:46 +00:00
Support ids
This commit is contained in:
parent
1b0417032a
commit
b0e5cf270d
3 changed files with 19 additions and 11 deletions
|
@ -18,11 +18,12 @@ async function run() {
|
|||
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 (username && password) {
|
||||
await auth.configAuthentication(username, password);
|
||||
if (id && username && password) {
|
||||
await auth.configAuthentication(id, username, password);
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue