Set retention time for uploaded artifacts to 7 days

This commit is contained in:
Deluan 2021-05-27 23:39:20 -04:00
parent ed01946ace
commit 25d62cd751
2 changed files with 2 additions and 18 deletions

View File

@ -104,6 +104,7 @@ jobs:
with:
name: js-bundle
path: ui/build
retention-days: 7
binaries:
name: Binaries
@ -149,6 +150,7 @@ jobs:
dist
!dist/*.tar.gz
!dist/*.zip
retention-days: 7
docker:
name: Docker images

View File

@ -1,18 +0,0 @@
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