Skip to content

mirai-toto/github-workflows-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Workflow Run Cleaner

Deletes all GitHub Actions workflow runs for a repo.

Files

  • delete-runs.sh → does the deletion
  • cleaner.sh → contains your repo + token (gitignored)

Requirements

  • bash
  • curl
  • jq
  • A PAT from GitHub with repo scope (or fine-grained token with Actions: Read & Write)

Setup

cp cleaner-template.sh cleaner.sh
chmod +x cleaner.sh delete-runs.sh

Edit cleaner.sh and fill:

OWNER="your-user"
REPO="your-repo"
TOKEN="ghp_xxx"

Run

./cleaner.sh

Deletes runs page by page until none remain.

Warning: irreversible.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages