Set retention time for uploaded artifacts to 7 days
This commit is contained in:
@@ -104,6 +104,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: js-bundle
|
name: js-bundle
|
||||||
path: ui/build
|
path: ui/build
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
binaries:
|
binaries:
|
||||||
name: Binaries
|
name: Binaries
|
||||||
@@ -149,6 +150,7 @@ jobs:
|
|||||||
dist
|
dist
|
||||||
!dist/*.tar.gz
|
!dist/*.tar.gz
|
||||||
!dist/*.zip
|
!dist/*.zip
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
name: Docker images
|
name: Docker images
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user