File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -65479,7 +65479,10 @@ async function getRunners(label) {
6547965479 const octokit = github.getOctokit(config.input.githubToken);
6548065480
6548165481 try {
65482- const runners = await octokit.paginate('GET /repos/{owner}/{repo}/actions/runners', config.githubContext);
65482+ const runners = await octokit.paginate('GET /repos/{owner}/{repo}/actions/runners', {
65483+ ...config.githubContext,
65484+ per_page: 100,
65485+ });
6548365486 const foundRunners = _.filter(runners, { labels: [{ name: label }] });
6548465487 return foundRunners.length > 0 ? foundRunners : null;
6548565488 } catch (error) {
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ async function getRunners(label) {
99 const octokit = github . getOctokit ( config . input . githubToken ) ;
1010
1111 try {
12- const runners = await octokit . paginate ( 'GET /repos/{owner}/{repo}/actions/runners' , config . githubContext ) ;
12+ const runners = await octokit . paginate ( 'GET /repos/{owner}/{repo}/actions/runners' , {
13+ ...config . githubContext ,
14+ per_page : 100 ,
15+ } ) ;
1316 const foundRunners = _ . filter ( runners , { labels : [ { name : label } ] } ) ;
1417 return foundRunners . length > 0 ? foundRunners : null ;
1518 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments