Add automatic workflow build artifact cleanup.
This commit is contained in:
13
.github/workflows/nightly_cleanup.yml
vendored
Normal file
13
.github/workflows/nightly_cleanup.yml
vendored
Normal 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
|
Reference in New Issue
Block a user