From 3e02d41a3b659cc203c8707a8d40e6a3a8cbf4fa Mon Sep 17 00:00:00 2001 From: Mike Henry <11765982+mikemhenry@users.noreply.github.com> Date: Thu, 4 Jan 2024 16:46:52 -0700 Subject: [PATCH] include date in cache key --- .github/workflows/CI.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 0b08c0cf..a9a6d1bc 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -41,11 +41,16 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Get current date + id: date + run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" - uses: mamba-org/setup-micromamba@v1 with: environment-file: devtools/conda-envs/espaloma.yaml 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 }}