1
0
Fork 0
mirror of https://github.com/docker/login-action.git synced 2025-05-12 00:19:29 +02:00

add args for retries

Signed-off-by: Fedor Dikarev <fedor.dikarev@gmail.com>
This commit is contained in:
Fedor Dikarev 2025-01-23 02:27:56 +01:00
parent 327cd5a69d
commit 2bc89718bc
5 changed files with 25 additions and 5 deletions

View file

@ -6,6 +6,9 @@ export interface Inputs {
password: string;
ecr: string;
logout: boolean;
http_errors_to_retry: string[];
max_attempts: number;
retry_timeout: number;
}
export function getInputs(): Inputs {
@ -14,6 +17,9 @@ export function getInputs(): Inputs {
username: core.getInput('username'),
password: core.getInput('password'),
ecr: core.getInput('ecr'),
logout: core.getBooleanInput('logout')
logout: core.getBooleanInput('logout'),
http_errors_to_retry: core.getInput('http_errors_to_retry').split(','),
max_attempts: Number.parseInt(core.getInput('max_attempts')),
retry_timeout: Number.parseInt(core.getInput('retry_timeout'))
};
}