add retention days config to upload artifacts action
This commit is contained in:
20
.github/workflows/clean-up.yml
vendored
20
.github/workflows/clean-up.yml
vendored
@@ -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'
|
|
||||||
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -92,6 +92,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: cypress-screenshots
|
name: cypress-screenshots
|
||||||
path: tests/cypress/screenshots
|
path: tests/cypress/screenshots
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
- name: Export screen recordings (on failure only)
|
- name: Export screen recordings (on failure only)
|
||||||
uses: actions/upload-artifact@v2.2.0
|
uses: actions/upload-artifact@v2.2.0
|
||||||
@@ -99,6 +100,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: cypress-videos
|
name: cypress-videos
|
||||||
path: tests/cypress/videos
|
path: tests/cypress/videos
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
- name: Send Slack notifications
|
- name: Send Slack notifications
|
||||||
uses: act10ns/slack@v1
|
uses: act10ns/slack@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user