File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
robomaker-sample-app-ci/dist Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments