mirror of
https://github.com/docker/login-action.git
synced 2025-02-22 02:10:27 +00:00
fix build
Signed-off-by: Fedor Dikarev <fedor.dikarev@gmail.com>
This commit is contained in:
parent
b909aa9ffe
commit
bdcef6ee7a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue