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
9 changes: 3 additions & 6 deletions .github/workflows/actions-storage-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,14 @@ jobs:
core.info(`Keeping newest ${keepRuns} run(s) per workflow.`);

const workflows = await github.paginate(
github.request,
'GET /repos/{owner}/{repo}/actions/workflows',
github.rest.actions.listRepoWorkflows,
{ owner, repo, per_page: 100 }
);

let deletedRuns = 0;
for (const workflow of workflows) {
const runs = await github.paginate(
github.request,
'GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs',
github.rest.actions.listWorkflowRuns,
{ owner, repo, workflow_id: workflow.id, per_page: 100 }
);

Expand Down Expand Up @@ -81,8 +79,7 @@ jobs:
}

const caches = await github.paginate(
github.request,
'GET /repos/{owner}/{repo}/actions/caches',
github.rest.actions.getActionsCacheList,
{ owner, repo, per_page: 100 }
);

Expand Down