fix sleep

This commit is contained in:
Wathanyu Phromma 2020-05-29 20:37:30 +07:00
parent c2d9bb82a5
commit 9b072b60e1

View File

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