mirror of
https://github.com/unraid/api.git
synced 2026-01-06 16:49:49 -06:00
chore: add cron github action
This commit is contained in:
15
.github/workflows/cron.yml
vendored
Normal file
15
.github/workflows/cron.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user