Support ids

This commit is contained in:
Bryan Clark 2019-11-28 12:40:08 -08:00
parent 1b0417032a
commit b0e5cf270d
3 changed files with 19 additions and 11 deletions

View file

@ -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) {