1
0
Fork 0
mirror of https://github.com/docker/login-action.git synced 2025-04-02 05:00:06 +02:00
login-action/src/context.ts
Fedor Dikarev 75fdabcf85 http_errors_to_retry -> http_codes_to_retry
Signed-off-by: Fedor Dikarev <fedor.dikarev@gmail.com>
2025-01-24 13:33:51 +01:00

25 lines
706 B
TypeScript

import * as core from '@actions/core';
export interface Inputs {
registry: string;
username: string;
password: string;
ecr: string;
logout: boolean;
http_codes_to_retry: string[];
max_attempts: number;
retry_timeout: number;
}
export function getInputs(): Inputs {
return {
registry: core.getInput('registry'),
username: core.getInput('username'),
password: core.getInput('password'),
ecr: core.getInput('ecr'),
logout: core.getBooleanInput('logout'),
http_codes_to_retry: core.getInput('http_codes_to_retry').split(','),
max_attempts: Number.parseInt(core.getInput('max_attempts')),
retry_timeout: Number.parseInt(core.getInput('retry_timeout'))
};
}