Skip to content

Commit

Permalink
Improving cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
cofinoa committed Apr 20, 2024
1 parent aeb1268 commit 7804736
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ env.CONDA }}/envs
key:
conda-${{ runner.os }}-
${{ runner.arch }}-
${{ steps.get-date.outputs.today }}-
${{ hashFiles('binder/conda/environment.yml') }}-
${{ env.CACHE_NUMBER }}
key: "\
conda-${{ runner.os }}-\
${{ runner.arch }}-\
${{ steps.get-date.outputs.today }}-\
${{ hashFiles('binder/conda/environment.yml') }}-\
${{ env.CACHE_NUMBER }}\
"
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
Expand Down

0 comments on commit 7804736

Please sign in to comment.