8000 Update git.ts · CasP0/github-pages-deploy-action@27811f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 27811f4

Browse files
committed
Update git.ts
1 parent 47dc1b7 commit 27811f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/git.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export async function init(action: ActionInterface): Promise<void | Error> {
2525
const ATTEMPT_LIMIT = 2
2626

2727
let attempt = 0
28-
let rejected = false
2928

3029
do {
3130
attempt++
@@ -68,7 +67,7 @@ export async function init(action: ActionInterface): Promise<void | Error> {
6867
action.workspace,
6968
action.silent
7069
)
71-
} while (rejected)
70+
} while (attempt < ATTEMPT_LIMIT)
7271

7372
try {
7473
if ((process.env.CI && !action.sshKey) || action.isTest) {

0 commit comments

Comments
 (0)
0