https://github.com/glassechidna/artifact-cleaner
GitHub Action that can clean up old artifacts on a regular schedule
https://github.com/glassechidna/artifact-cleaner
artifacts ci docker github-actions golang
Last synced: about 1 year ago
JSON representation
GitHub Action that can clean up old artifacts on a regular schedule
- Host: GitHub
- URL: https://github.com/glassechidna/artifact-cleaner
- Owner: glassechidna
- Created: 2020-02-06T23:13:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-01T10:19:16.000Z (about 4 years ago)
- Last Synced: 2024-07-16T04:22:58.778Z (almost 2 years ago)
- Topics: artifacts, ci, docker, github-actions, golang
- Language: Go
- Size: 7.81 KB
- Stars: 3
- Watchers: 5
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an action that you can run on a regular basis to clean up outdated
workflow run artifacts before their typical 90 day expiry.
By default, all artifacts are deleted. There are options to only delete big
artifacts, artifacts of a certain age or ones with a specific name.
Suggested usage is in a standalone workflow doc at `.github/workflows/cleanup.yml`
with the following content:
```
name: clean artifacts
on:
schedule:
- cron: '0 0 * * *'
jobs:
clean:
runs-on: ubuntu-latest
steps:
- name: cleanup
uses: glassechidna/artifact-cleaner@master
with:
minimumAge: 86400 # all artifacts at least one day old
```
This cleans all artifacts once a day.