Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/github-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,13 @@ export class GitHubHelper {
workflowName: string
): Promise<string> {
core.debug(`Getting workflow ${workflowName} for repository ${repository}`)
const {data: workflows} = await this.octokit.rest.actions.listRepoWorkflows(
const workflows = await this.octokit.paginate("GET /repos/{owner}/{repo}/actions/workflows",
{
...this.parseRepository(repository)
...this.parseRepository(repository),
per_page: 100
}
)
for (const workflow of workflows.workflows) {
for (const workflow of workflows) {
core.debug(`Found workflow: ${workflow.path}`)
if (
workflow.path.endsWith(`${workflowName}.yml`) ||
Expand Down
Loading