Add automatic workflow build artifact cleanup.

This commit is contained in:
Knutwurst
2021-04-11 12:37:58 +02:00
parent 5b3c593f77
commit aa7b477b30
2 changed files with 15 additions and 2 deletions

13
.github/workflows/nightly_cleanup.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: 'nightly artifacts cleanup'
on:
schedule:
- cron: '0 1 * * *' # every night at 1 am UTC
jobs:
delete-artifacts:
runs-on: ubuntu-latest
steps:
- uses: kolpav/purge-artifacts-action@v1
with:
token: $
expire-in: 7days # Set this to 0 to delete all artifacts