Skip to content

Commit e9ac62a

Browse files
author
GitHub Actions
committed
Update dist
1 parent c903ef5 commit e9ac62a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55304,8 +55304,8 @@ async function getRunner(label) {
5530455304
const octokit = github.getOctokit(config.input.githubToken);
5530555305

5530655306
try {
55307-
const response = await octokit.request('GET /repos/{owner}/{repo}/actions/runners', config.githubContext);
55308-
const foundRunners = _.filter(response.data.runners, { labels: [{ name: label }] });
55307+
const runners = await octokit.paginate('GET /repos/{owner}/{repo}/actions/runners', config.githubContext);
55308+
const foundRunners = _.filter(runners, { labels: [{ name: label }] });
5530955309
return foundRunners.length > 0 ? foundRunners[0] : null;
5531055310
} catch (error) {
5531155311
return null;

0 commit comments

Comments
 (0)