Set retention time for uploaded artifacts to 7 days
This commit is contained in:
parent
ed01946ace
commit
25d62cd751
2 changed files with 2 additions and 18 deletions
2
.github/workflows/pipeline.yml
vendored
2
.github/workflows/pipeline.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
18
.github/workflows/remove-old-artifacts.yml
vendored
18
.github/workflows/remove-old-artifacts.yml
vendored
|
|
@ -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
|
|
||||||
Loading…
Reference in a new issue