Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aidansteele committed Feb 7, 2020
1 parent f4683b4 commit 71de9c6
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
name: ""
author: ""
description: ""
name: "GitHub Actions Artifact Cleaner"
author: "Aidan Steele @ Glass Echidna"
description: |
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.
branding:
icon: trash-2
color: red
Expand Down

0 comments on commit 71de9c6

Please sign in to comment.