Skip to content

Clean up all GitHub Actions artifacts using the GitHub API

License

Notifications You must be signed in to change notification settings

Zeryther/delete-github-actions-artifacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project