This commit is contained in:
Wathanyu Phromma
2020-05-29 21:16:11 +07:00
parent 6836460121
commit 31d4a5f24b
3 changed files with 17 additions and 15 deletions

View File

@@ -32,9 +32,9 @@ export const sendRequestWithRetry = async (config: AxiosRequestConfig) => {
exit = true
} catch (err) {
countRetry += 1
core.info(`retry: ${countRetry}`)
if (countRetry <= numberOfRetry) {
//await sleep(backoff * 1000)
core.info(`retry: ${countRetry}`)
await sleep(backoff * 1000)
} else {
exit = true
core.setFailed(err)