Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 949 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 949 Bytes

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.