From 26b69ef737ec0505374701f1340d78996daa4c94 Mon Sep 17 00:00:00 2001 From: Mike Henry <11765982+mikemhenry@users.noreply.github.com> Date: Tue, 9 Jan 2024 10:17:57 -0700 Subject: [PATCH] include date in cache key (#31) --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f571c3f..831e5f1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,12 +33,17 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Get current date + id: date + run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" - uses: mamba-org/setup-micromamba@v1 with: environment-file: environment.yml environment-name: kartograf cache-environment: true cache-downloads: true + cache-environment-key: environment-${{ steps.date.outputs.date }} + cache-downloads-key: downloads-${{ steps.date.outputs.date }} create-args: >- python=${{ matrix.python-version }}