-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71de9c6
commit 88ba46e
Showing
2 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters