only update conda env if cache was not hit

This commit is contained in:
Grant Limberg 2025-09-03 10:42:22 -07:00
parent a841e96bd2
commit 3f3e684811

View file

@ -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