Skip to content

Commit

Permalink
fix: list maximum (100) workflows possible before paging
Browse files Browse the repository at this point in the history
This was suggested by @Gislebert in styfle#59

the default was 30, this widens the number of workflows we scan to
cancel the most workflows possible, without adding complication by paging
  • Loading branch information
mikehardy committed Apr 1, 2021
1 parent c4d438d commit a5cd3aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/index.js
Expand Up @@ -5885,6 +5885,7 @@ async function main() {
await Promise.all(workflow_ids.map(async (workflow_id) => {
try {
const { data } = await octokit.actions.listWorkflowRuns({
per_page: 100,
owner,
repo,
workflow_id,
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Expand Up @@ -60,6 +60,7 @@ async function main(): Promise<void> {
workflow_ids.map(async workflow_id => {
try {
const { data } = await octokit.actions.listWorkflowRuns({
per_page: 100,
owner,
repo,
workflow_id,
Expand Down

0 comments on commit a5cd3aa

Please sign in to comment.