Skip to content

Commit 17b9990

Browse files
authored
nightly_cleanup.yml
nightly_cleanup.yml
1 parent 339437b commit 17b9990

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 'nightly artifacts cleanup'
2+
on:
3+
schedule:
4+
- cron: '0 4 * * *' # every night at 4 am UTC
5+
6+
jobs:
7+
delete-artifacts:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: kolpav/purge-artifacts-action@v1
11+
with:
12+
token: ${{ secrets.GITHUB_TOKEN }}
13+
expire-in: 3days # Setting this to 0 will delete all artifacts

0 commit comments

Comments
 (0)