Skip to content

Commit 104f27e

Browse files
cheng-kevinchengke
andauthored
update index.js (#40)
Co-authored-by: chengke <[email protected]>
1 parent 576814c commit 104f27e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robomaker-sample-app-ci/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,7 @@ function run() {
862862
// check if RETRIES is valid (i.e. 0<) and not too large (i.e. <10)
863863
if (RETRIES < 0 || 9 < RETRIES) {
864864
core.setFailed(`Invalid number of retries. Must be between 0-9 inclusive`);
865+
return;
865866
}
866867
for (let i = 0; i <= RETRIES; i++) {
867868
try {
@@ -884,7 +885,6 @@ function run() {
884885
console.log(`Action failed.. retrying in ${delay_ms} milliseconds`);
885886
yield delay(delay_ms); // wait for next retry per the current exponential backoff delay
886887
delay_ms = Math.min(delay_ms * 2, 1000 * MAXIMUM_BACKOFF_TIME_SECONDS); // double the delay for the next retry, truncate if required
887-
core.setFailed(error.message);
888888
}
889889
}
890890
});

0 commit comments

Comments
 (0)