diff --git a/src/git.ts b/src/git.ts index 9ea6aa04..3a4cf1cb 100644 --- a/src/git.ts +++ b/src/git.ts @@ -25,7 +25,6 @@ export async function init(action: ActionInterface): Promise { const ATTEMPT_LIMIT = 2 let attempt = 0 - let rejected = false do { attempt++ @@ -68,7 +67,7 @@ export async function init(action: ActionInterface): Promise { action.workspace, action.silent ) - } while (rejected) + } while (attempt < ATTEMPT_LIMIT) try { if ((process.env.CI && !action.sshKey) || action.isTest) {