Skip to content

Commit e3aae63

Browse files
committed
1 parent 5659035 commit e3aae63

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dist/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

src/gh.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)