docker-login/src/context.ts

18 lines
398 B
TypeScript
Raw Normal View History

2020-08-20 14:40:33 +00:00
import * as core from '@actions/core';
export interface Inputs {
registry: string;
username: string;
password: string;
logout: string;
}
export function getInputs(): Inputs {
2020-08-20 14:40:33 +00:00
return {
registry: core.getInput('registry'),
username: core.getInput('username', {required: true}),
2020-08-20 14:40:33 +00:00
password: core.getInput('password', {required: true}),
logout: core.getInput('logout')
};
}