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