Files
login-action/src/context.ts
2020-10-20 14:42:02 +02:00

18 lines
362 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'),
logout: core.getInput('logout')
};
}