Github Action : Add workflow to delete artifacts older than one week

This commit is contained in:
Magne Sjaastad 2020-05-19 12:44:28 +02:00
parent e27a673ab6
commit b4defbf19b

View File

@ -0,0 +1,20 @@
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: '1 week'
# Optional inputs
# skip-tags: true
# skip-recent: 5