mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 09:26:46 +00:00
Try env variables
This commit is contained in:
parent
6924f73ee0
commit
1bba665156
6 changed files with 90 additions and 83 deletions
|
@ -22,11 +22,7 @@ async function run() {
|
|||
const username = core.getInput('server-username', {required: false});
|
||||
const password = core.getInput('server-password', {required: false});
|
||||
|
||||
if (id && username && password) {
|
||||
await auth.configAuthentication(id, username, password);
|
||||
} else if (id || username || password) {
|
||||
console.warn('All 3 server-(id, username, and password) are required.');
|
||||
}
|
||||
await auth.configAuthentication(id, username, password);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue