Artifacts can easily eat up GitHub Actions free tier usage. This script helps you easily clean up all artifacts in a repository to avoid paying.
- Node.js
- NPM
- A GitHub API Token
- You can create one here. It is important to set the
repo
scope.
- You can create one here. It is important to set the
# Clone the repository
git clone https://github.com/Zeryther/delete-github-actions-artifacts
# Install dependencies
npm i
# Run the script
node src/index.js
GitHub API Token: ghp_xxxxxxxxxxxxxxxxxx
Repository (ex. organization/name): your/repository
The script will discover all artifacts in your repository and delete them.
This program was developed and published by Mehdi Baaboura under the MIT License.