1
0
Fork 0
mirror of https://github.com/docker/login-action.git synced 2025-04-01 20:50:06 +02:00
login-action/src/context.ts
2020-12-30 10:53:16 -08:00

19 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')
};
}