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:
parent
327cd5a69d
commit
2bc89718bc
5 changed files with 25 additions and 5 deletions
|
@ -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'))
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue