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