File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ inputs:
1212 endpoints :
1313 description : " The endpoints to test the response time of."
1414 required : true
15- default : [
16- " /test"
17- ]
15+ default : " /test1 /test2"
1816runs :
1917 using : ' node18'
2018 main : ' index.js'
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch
77 try {
88 const timeLimit = core . getInput ( "time-limit" ) ;
99 const base = core . getInput ( "base" ) ;
10- const endpoints = core . getInput ( "endpoints" ) ;
11-
10+ const endpoints = core . getInput ( "endpoints" ) . split ( " " ) ;
11+
1212 for ( endpoint of endpoints ) {
1313 const time = Date . now ( ) ;
1414 await fetch ( `${ base } ${ endpoint } ` ) . then ( data => data . text ( ) ) ;
You can’t perform that action at this time.
0 commit comments