1
0
Files
login-action/src/context.ts
T

20 lines
416 B
TypeScript
Raw Normal View History

2020-08-20 16:40:33 +02:00
import * as core from '@actions/core';
export interface Inputs {
registry: string;
username: string;
password: string;
ecr: string;
2021-06-22 10:39:55 +02:00
logout: boolean;
2020-08-20 16:40:33 +02:00
}
2020-10-09 03:30:45 -07:00
export function getInputs(): Inputs {
2020-08-20 16:40:33 +02:00
return {
registry: core.getInput('registry'),
2020-10-20 14:41:56 +02:00
username: core.getInput('username'),
password: core.getInput('password'),
ecr: core.getInput('ecr'),
2021-06-22 10:39:55 +02:00
logout: core.getBooleanInput('logout')
2020-08-20 16:40:33 +02:00
};
}