Jelajahi Sumber

only update conda env if cache was not hit

Grant Limberg 1 Minggu lalu
induk
melakukan
3f3e684811
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      .github/workflows/central-controller.yaml

+ 1 - 0
.github/workflows/central-controller.yaml

@@ -26,6 +26,7 @@ jobs:
         path: ${{ env.CONDA }}/envs
         key: ${{ runner.os }}-${{ runner.arch }}-${{ github.ref_name }}-conda-${{ hashFiles('environment.yml') }}
     - name: Update Conda Environment
+      if: steps.cache.outputs.cache-hit != 'true'
       run: |
         source ~/miniconda3/etc/profile.d/conda.sh
         conda env update --file environment.yml