Browse Source

put git branch ref into cache key name

Grant Limberg 1 week ago
parent
commit
a841e96bd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/central-controller.yaml

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

@@ -24,7 +24,7 @@ jobs:
       uses: actions/cache@v4
       with:
         path: ${{ env.CONDA }}/envs
-        key: ${{ runner.os }}-${{ runner.arch }}-conda-${{ hashFiles('environment.yml') }}
+        key: ${{ runner.os }}-${{ runner.arch }}-${{ github.ref_name }}-conda-${{ hashFiles('environment.yml') }}
     - name: Update Conda Environment
       run: |
         source ~/miniconda3/etc/profile.d/conda.sh