mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Update git.ts
This commit is contained in:
parent
47dc1b7ba1
commit
27811f4b80
@ -25,7 +25,6 @@ export async function init(action: ActionInterface): Promise<void | Error> {
|
||||
const ATTEMPT_LIMIT = 2
|
||||
|
||||
let attempt = 0
|
||||
let rejected = false
|
||||
|
||||
do {
|
||||
attempt++
|
||||
@ -68,7 +67,7 @@ export async function init(action: ActionInterface): Promise<void | Error> {
|
||||
action.workspace,
|
||||
action.silent
|
||||
)
|
||||
} while (rejected)
|
||||
} while (attempt < ATTEMPT_LIMIT)
|
||||
|
||||
try {
|
||||
if ((process.env.CI && !action.sshKey) || action.isTest) {
|
||||
|
Loading…
Reference in New Issue
Block a user