We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4673488 commit f98dc40Copy full SHA for f98dc40
1 file changed
pr/checks-rerun/action.yml
@@ -5,7 +5,7 @@ inputs:
5
workflow-id:
6
description: Workflow filename to rerun
7
required: false
8
- default: pull-request.yml
+ default: .github/workflows/pull-request.yml
9
token:
10
description: 'GitHub token or PAT with actions:write permission'
11
@@ -24,12 +24,13 @@ runs:
24
const headSha = context.payload.pull_request.head.sha;
25
26
// Fetch all runs for the workflow and HEAD SHA (no status filter)
27
- const runs = await github.rest.actions.listWorkflowRunsForRepo({
+ const runs = await github.rest.actions.listWorkflowRuns({
28
owner,
29
repo,
30
workflow_id: '${{ inputs.workflow-id }}',
31
event: 'pull_request',
32
head_sha: headSha,
33
+ per_page: 20,
34
});
35
36
// If there's an in-progress, queued, or waiting run, skip rerun to avoid
0 commit comments