From 2ad1b96a3690f2ae0fd03b69ca4067b8e1bfeadc Mon Sep 17 00:00:00 2001 From: Mattia Almansi Date: Tue, 14 Nov 2023 12:26:26 +0100 Subject: [PATCH] invalidate cache daily --- .../.github/workflows/on-push.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/{{cookiecutter.project_name}}/.github/workflows/on-push.yml b/{{cookiecutter.project_name}}/.github/workflows/on-push.yml index 49b0940..2571766 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/on-push.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/on-push.yml @@ -65,6 +65,8 @@ jobs: environment-file: ci/combined-environment-ci.yml environment-name: DEVELOP cache-environment: true + cache-environment-key: environment-${{ '{{ steps.date.outputs.date }}' }} + cache-downloads-key: downloads-${{ '{{ steps.date.outputs.date }}' }} create-args: >- python=${{ '{{ matrix.python-version }}' }} - name: Install package @@ -89,6 +91,8 @@ jobs: environment-file: ci/combined-environment-ci.yml environment-name: DEVELOP cache-environment: true + cache-environment-key: environment-${{ '{{ steps.date.outputs.date }}' }} + cache-downloads-key: downloads-${{ '{{ steps.date.outputs.date }}' }} create-args: >- python=3.10 - name: Install package @@ -113,6 +117,8 @@ jobs: environment-file: ci/combined-environment-ci.yml environment-name: DEVELOP cache-environment: true + cache-environment-key: environment-${{ '{{ steps.date.outputs.date }}' }} + cache-downloads-key: downloads-${{ '{{ steps.date.outputs.date }}' }} create-args: >- python=3.10 - name: Install package @@ -145,6 +151,8 @@ jobs: environment-file: ci/combined-environment${{ '{{ matrix.extra }}' }}.yml environment-name: DEVELOP${{ '{{ matrix.extra }}' }} cache-environment: true + cache-environment-key: environment-${{ '{{ steps.date.outputs.date }}' }} + cache-downloads-key: downloads-${{ '{{ steps.date.outputs.date }}' }} create-args: >- python=${{ '{{ matrix.python-version }}' }} - name: Install package