Try env variables

This commit is contained in:
Bryan Clark 2019-12-19 11:28:11 -08:00
parent 6924f73ee0
commit 1bba665156
6 changed files with 90 additions and 83 deletions

View file

@ -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);
}