Skip to content

Commit f98dc40

Browse files
committed
fix(pr-reruns): use right endpoint
1 parent 4673488 commit f98dc40

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pr/checks-rerun/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
workflow-id:
66
description: Workflow filename to rerun
77
required: false
8-
default: pull-request.yml
8+
default: .github/workflows/pull-request.yml
99
token:
1010
description: 'GitHub token or PAT with actions:write permission'
1111
required: false
@@ -24,12 +24,13 @@ runs:
2424
const headSha = context.payload.pull_request.head.sha;
2525
2626
// Fetch all runs for the workflow and HEAD SHA (no status filter)
27-
const runs = await github.rest.actions.listWorkflowRunsForRepo({
27+
const runs = await github.rest.actions.listWorkflowRuns({
2828
owner,
2929
repo,
3030
workflow_id: '${{ inputs.workflow-id }}',
3131
event: 'pull_request',
3232
head_sha: headSha,
33+
per_page: 20,
3334
});
3435
3536
// If there's an in-progress, queued, or waiting run, skip rerun to avoid

0 commit comments

Comments
 (0)