-
Notifications
You must be signed in to change notification settings - Fork 0
Installation and Usage
Lucas edited this page Mar 6, 2026
·
18 revisions
- macOS terminal
- GitHub CLI (
gh) - a GitHub account authenticated with
gh auth login
From the project folder:
chmod +x gh-actions-cleanup install-gh-actions-cleanup.sh
./install-gh-actions-cleanup.shIf the installer uses ~/.local/bin and that path is not already in your shell PATH, add the export line printed by the installer into ~/.zshrc, then open a new terminal.
gh-actions-cleanupThe CLI can prompt for:
- GitHub host
- authenticated account
- repository owner
- repository name
- cleanup actions
Full cleanup:
gh-actions-cleanup --repo WayneTechLab/networkschat --all --yesDry run:
gh-actions-cleanup --repo WayneTechLab/networkschat --all --dry-run --yesDisable workflows only:
gh-actions-cleanup --repo WayneTechLab/networkschat --disable-workflows --yesDelete workflow runs only:
gh-actions-cleanup --repo WayneTechLab/networkschat --delete-runs --yesDelete caches only:
gh-actions-cleanup --repo WayneTechLab/networkschat --delete-caches --yes- The command uses the selected active GitHub account on the selected host.
- If multiple accounts are authenticated on one host, the CLI can switch with
gh auth switch. -
--dry-runis the safest way to verify intended changes before deleting Actions data.