-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Lucas edited this page Mar 7, 2026
·
21 revisions
gh-actions-cleanup is a macOS terminal CLI for shutting down and cleaning up GitHub Actions usage across repositories.
- selects the GitHub host and authenticated account to use
- selects the target repository
- disables GitHub Actions workflows
- deletes workflow runs
- deletes Actions artifacts
- deletes Actions caches
From the project folder:
chmod +x gh-actions-cleanup install-gh-actions-cleanup.sh
./install-gh-actions-cleanup.sh
gh-actions-cleanupBy default, the installer:
- installs the CLI command into a writable bin directory
- installs
GH Workflow Clean.appinto~/Applications - generates the app icon locally during install
Full cleanup:
gh-actions-cleanup --repo OWNER/REPO --all --yesSafe preview first:
gh-actions-cleanup --repo OWNER/REPO --all --dry-run --yesTarget one leftover run series:
gh-actions-cleanup --repo OWNER/REPO --delete-runs --run-filter "Sync Google Analytics Data" --yesTarget one exact run:
gh-actions-cleanup --repo OWNER/REPO --run "https://github.com/OWNER/REPO/actions/runs/21023858697/workflow" --yesApp launch:
- open
GH Workflow Clean.appfrom Finder, Spotlight, or Launchpad - the app opens Terminal and runs the interactive CLI
- The CLI uses the selected active GitHub account on the selected host.
- If multiple accounts are authenticated on one host, it can switch using
gh auth switch. - The token in use needs repository and workflow access to delete Actions resources.
- You can target one exact workflow run by numeric ID or GitHub run URL.
- If the active token is invalid or the GitHub API core rate limit is exhausted, the CLI stops before cleanup and shows the next command to run.
- If local
gh auth statuslooks stale but live GitHub API access still works, the CLI warns and continues. -
--dry-runis the safest way to confirm intended changes before deleting anything. - The macOS app uses Terminal and may request automation permission the first time it launches.
- Wayne Tech Lab LLC: WayneTechLab.com
- Public portfolio: Networks.CHAT
Built by Lucas / SatoshiUNO.