add retention days config to upload artifacts action

This commit is contained in:
Hans Pagel
2020-10-05 10:00:48 +02:00
parent 3de4187a39
commit 3b17ab5056
2 changed files with 2 additions and 20 deletions

View File

@@ -1,20 +0,0 @@
# GitHub Action to remove old artifacts
# Documentation: https://github.com/c-hive/gha-remove-artifacts
name: clean-up
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'