Add cron workflow to remove old pipeline artifacts

This commit is contained in:
Deluan 2020-04-28 14:13:34 -04:00
parent 71a1f65be2
commit 08e9ac63b1
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
name: Remove old artifacts
on:
schedule:
# Every day at 1am
- cron: '0 1 * * *'
jobs:
remove-old-artifacts:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1
with:
age: '7 days'
skip-tags: false