fix the timeout not honor bug

This commit is contained in:
yimysty
2022-03-28 12:32:59 -07:00
parent 6afc4f2884
commit 12940a5b99
5 changed files with 23 additions and 20 deletions

3
dist/index.js vendored
View File

@@ -7182,13 +7182,14 @@ class Deployment {
core.setFailed('Failed with status code: ' + res.status)
break
}
}
// Handle timeout
if (Date.now() - startTime >= timeout) {
core.info('Timeout reached, aborting!')
core.setFailed('Timeout reached, aborting!')
return
}
}
} catch (error) {
core.setFailed(error)
if (error.response && error.response.data) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -7182,13 +7182,14 @@ class Deployment {
core.setFailed('Failed with status code: ' + res.status)
break
}
}
// Handle timeout
if (Date.now() - startTime >= timeout) {
core.info('Timeout reached, aborting!')
core.setFailed('Timeout reached, aborting!')
return
}
}
} catch (error) {
core.setFailed(error)
if (error.response && error.response.data) {

File diff suppressed because one or more lines are too long

View File

@@ -138,13 +138,14 @@ class Deployment {
core.setFailed('Failed with status code: ' + res.status)
break
}
}
// Handle timeout
if (Date.now() - startTime >= timeout) {
core.info('Timeout reached, aborting!')
core.setFailed('Timeout reached, aborting!')
return
}
}
} catch (error) {
core.setFailed(error)
if (error.response && error.response.data) {