Zeryther / delete-github-actions-artifacts

Clean up all GitHub Actions artifacts using the GitHub API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

delete-github-actions-artifacts

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.

Requirements

  • Node.js
  • NPM
  • A GitHub API Token
    • You can create one here. It is important to set the repo scope.

Installation

# Clone the repository
git clone https://github.com/Zeryther/delete-github-actions-artifacts

# Install dependencies
npm i

Usage

# 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.

Copyright and License

This program was developed and published by Mehdi Baaboura under the MIT License.

About

Clean up all GitHub Actions artifacts using the GitHub API

License:MIT License


Languages

Language:JavaScript 100.0%