chore: add cron github action

This commit is contained in:
Alexis Tyler
2021-04-06 08:30:14 +09:30
parent d6c269f439
commit 6d71ae6d03

15
.github/workflows/cron.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: 'Delete old artifacts'
on:
schedule:
- cron: '0 * * * *' # every hour
jobs:
delete-artifacts:
runs-on: ubuntu-latest
steps:
- uses: kolpav/purge-artifacts-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Keep the last day's worth of builds
expire-in: 1day # Setting this to 0 will delete all artifacts