Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pierluigi/gha-cleanup
A simple NodeJS CLI script to list and delete action artifacts in bulk
https://github.com/pierluigi/gha-cleanup
actions nodejs-cli
Last synced: 19 days ago
JSON representation
A simple NodeJS CLI script to list and delete action artifacts in bulk
- Host: GitHub
- URL: https://github.com/pierluigi/gha-cleanup
- Owner: pierluigi
- Created: 2020-01-28T21:51:35.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T01:55:34.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T13:42:28.703Z (about 1 month ago)
- Topics: actions, nodejs-cli
- Language: JavaScript
- Size: 844 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gha-cleanup - Clean up GitHub Actions artifacts
List and delete artifacts created by GitHub Actions in your repository.
Requires a Personal Access Token with full repo permissions.![Screenshot](screenshot.png?raw=true "Script in action")
# Instructions
```
yarn install
npm link // Optional step. Call ./cli.js instead// Options can be supplied interactively or via flags
$ gha-cleanup --help
Usage: gha-cleanup [options]Options:
-t, --token Your GitHub PAT
-u, --user Your GitHub username
-r, --repo Repository name
-h, --help output usage information```
# Configuration
You can pass the PAT and username directly from the prompt. To avoid repeating yourself all the time, create a .env file in the root (don't worry, it will be ignored by git) and set:
```
$GH_PAT=
$GH_USER=
```Then you can simply invoke `gha-cleanup` and confirm the prefilled values.