From 339ff4b4644ef7a35b21b3641a95d6309cdd4689 Mon Sep 17 00:00:00 2001 From: mauwii Date: Mon, 17 Oct 2022 04:02:38 +0200 Subject: [PATCH] fix conda pkg cache name also change content of hashFile-function --- .github/workflows/test-invoke-conda.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-invoke-conda.yml b/.github/workflows/test-invoke-conda.yml index 157a68b8c6..e81444c5c4 100644 --- a/.github/workflows/test-invoke-conda.yml +++ b/.github/workflows/test-invoke-conda.yml @@ -79,17 +79,17 @@ jobs: with: path: ${{ env.CONDA }}/envs/${{ env.CONDA_ENV_NAME }} key: ${{ env.cache-name }} - restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }} + restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles('${{ matrix.environment-file }}') }} - name: Use cached Conda Packages uses: actions/cache@v3 env: - cache-name: cache-conda-env-${{ env.CONDA_ENV_NAME }} + cache-name: cache-conda-pkgs-${{ env.CONDA_ENV_NAME }} conda-env-file: ${{ matrix.environment-file }} with: path: ${{ env.CONDA_PKGS_DIR }} key: ${{ env.cache-name }} - restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }} + restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles('${{ matrix.environment-file }}') }} - name: Activate Conda Env uses: conda-incubator/setup-miniconda@v2