docker-login/src/context.ts
Bryan Clark 4b15841c41
Mostly tests and some small changes (#16)
* Create docker.test.ts
* Add context tests
* test main
2020-10-09 10:30:45 +00:00

17 lines
380 B
TypeScript

import * as core from '@actions/core';
export interface Inputs {
registry: string;
username: string;
password: string;
logout: string;
}
export function getInputs(): Inputs {
return {
registry: core.getInput('registry'),
username: core.getInput('username'),
password: core.getInput('password', {required: true}),
logout: core.getInput('logout')
};
}