Update src/internal/deployment.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>
This commit is contained in:
Greta Parks
2023-05-12 09:40:31 -06:00
committed by GitHub
parent 3e2c26d7d5
commit dcb366ca66

View File

@@ -55,7 +55,7 @@ class Deployment {
}
let timeoutInput = Number(core.getInput('timeout'))
this.timeout = timeoutInput <= 0 ? maxTimeout : Math.min(timeoutInput, maxTimeout)
this.timeout = (!timeoutInput || timeoutInput <= 0) ? maxTimeout : Math.min(timeoutInput, maxTimeout)
try {
core.debug(`Actor: ${this.buildActor}`)