We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c11dc7 commit e81e009Copy full SHA for e81e009
1 file changed
src/github-helper.ts
@@ -189,12 +189,13 @@ export class GitHubHelper {
189
workflowName: string
190
): Promise<string> {
191
core.debug(`Getting workflow ${workflowName} for repository ${repository}`)
192
- const {data: workflows} = await this.octokit.rest.actions.listRepoWorkflows(
+ const workflows = await this.octokit.paginate("GET /repos/{owner}/{repo}/actions/workflows",
193
{
194
- ...this.parseRepository(repository)
+ ...this.parseRepository(repository),
195
+ per_page: 100
196
}
197
)
- for (const workflow of workflows.workflows) {
198
+ for (const workflow of workflows) {
199
core.debug(`Found workflow: ${workflow.path}`)
200
if (
201
workflow.path.endsWith(`${workflowName}.yml`) ||
0 commit comments