From eb7f56601ae58b5988bd3f4f3d9789fc51cd9036 Mon Sep 17 00:00:00 2001 From: Wen Wei Tseng Date: Sun, 15 Sep 2024 16:10:58 +0800 Subject: [PATCH] nb cache key --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e11cc83..8297d7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,10 +50,12 @@ jobs: uses: actions/cache@v4 id: cache-nb with: - path: ${{ env.NBCACHE }} - key: ${{ steps.hash.outputs.ver }}-${{ steps.hash.outputs.value }}-${{ hashFiles('docs/**/*.ipynb', 'docs/**/*.jl') }} + path: | + ${{ env.NBCACHE }}/**/*.ipynb + ${{ env.NBCACHE }}/**/*.sha + key: notebook-${{ steps.hash.outputs.value }}-${{ hashFiles('docs/**/*.ipynb', 'docs/**/*.jl') }} restore-keys: | - ${{ steps.hash.outputs.ver }}-${{ steps.hash.outputs.value }}- + notebook-${{ steps.hash.outputs.value }}- - name: Setup Julia uses: julia-actions/setup-julia@v2 with: