From 3b17ab50562d281341405e7dc340650582a14816 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 5 Oct 2020 10:00:48 +0200 Subject: [PATCH] add retention days config to upload artifacts action --- .github/workflows/clean-up.yml | 20 -------------------- .github/workflows/main.yml | 2 ++ 2 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/clean-up.yml diff --git a/.github/workflows/clean-up.yml b/.github/workflows/clean-up.yml deleted file mode 100644 index e325c934..00000000 --- a/.github/workflows/clean-up.yml +++ /dev/null @@ -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' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 04402e70..e827dd9d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -92,6 +92,7 @@ jobs: with: name: cypress-screenshots path: tests/cypress/screenshots + retention-days: 7 - name: Export screen recordings (on failure only) uses: actions/upload-artifact@v2.2.0 @@ -99,6 +100,7 @@ jobs: with: name: cypress-videos path: tests/cypress/videos + retention-days: 7 - name: Send Slack notifications uses: act10ns/slack@v1