fix build

Signed-off-by: Fedor Dikarev <fedor.dikarev@gmail.com>
This commit is contained in:
Fedor Dikarev 2025-01-23 02:53:23 +01:00
parent b909aa9ffe
commit bdcef6ee7a

View file

@ -14,7 +14,7 @@ export async function login(registry: string, username: string, password: string
}
} catch (error) {
if ((attempt < max_attempts) && (isRetriableError(error, http_errors_to_retry))) {
core.info("Attempt ", attempt, "out of ", max_attempts, "failed, retrying after ", retry_timeout, "seconds");
core.info(`Attempt ${attempt} out of ${max_attempts} failed, retrying after ${retry_timeout} seconds`);
await new Promise(r => setTimeout(r, retry_timeout * 1000));
} else {
throw new Error(error);