From e6eabe7ad4aaa4879eceae931a9fa4400045e5e2 Mon Sep 17 00:00:00 2001 From: Paul Schwarzenberger Date: Sun, 24 Mar 2024 15:06:59 +0000 Subject: [PATCH] Change cache behaviour --- .github/workflows/website.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index ac4a19a9..4c89331b 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -23,14 +23,11 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.11 - - - name: Create Cache ID - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - - name: Set up cache - uses: actions/cache@v4 + - name: Set up build cache + uses: actions/cache/restore@v4 with: - key: mkdocs-material-${{ env.cache_id }} + key: mkdocs-material-${{ hashfiles('.cache/**') }} path: .cache restore-keys: | mkdocs-material-