Skip to content

Installation and Usage

Lucas edited this page Mar 7, 2026 · 18 revisions

Installation and Usage

Requirements

  • macOS
  • GitHub CLI (gh)
  • a GitHub account authenticated with gh auth login
  • Xcode or Command Line Tools if you want the native GUI app built locally from source

Public Install

From any Mac:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/WayneTechLab/GH-Workflow-Clean/main/install.sh)"

Then:

gh auth login -h github.com
gh-actions-cleanup

Or open the native app:

open "/Applications/GitHub (Action) Clean-UP Tool.app"

Local Install From Source

chmod +x gh-actions-cleanup install-gh-actions-cleanup.sh
./install-gh-actions-cleanup.sh

Installer behavior:

  • removes older CLI installs before reinstalling
  • removes older app bundles before reinstalling
  • installs the CLI into a writable macOS bin directory
  • installs the app into /Applications when writable, otherwise ~/Applications
  • bundles the current version and Terms of Service into the app
  • uses the existing gh keychain session instead of storing tokens
  • redacts common token and key patterns from the native app log panel

CLI Use

Interactive:

gh-actions-cleanup

Full cleanup:

gh-actions-cleanup --repo OWNER/REPO --all --yes

Dry run:

gh-actions-cleanup --repo OWNER/REPO --all --dry-run --yes

Native App Use

The native app includes:

  • a responsive SwiftUI single-shell dashboard
  • ultrawide, desktop, compact, and narrow layouts
  • repository list loading with search, checkmarks, and select-all
  • visible GitHub account state
  • logout action for the selected account
  • live output console
  • safety arm switch before destructive actions run
  • an every-launch warning and Terms of Service acceptance screen

Clone this wiki locally