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