소스 검색

only update conda env if cache was not hit

Grant Limberg 1 주 전
부모
커밋
3f3e684811
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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