1
0
mirror of https://githubfast.com/docker/login-action.git synced 2024-03-15 03:39:46 +00:00
login-action/src/context.ts
2020-12-30 10:53:16 -08:00

20 lines
414 B
TypeScript

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