Update cache key creation to use date suffix

This commit is contained in:
Kamil Krzyśków
2023-05-03 07:55:45 +02:00
parent 308afb9945
commit 811a0739b4
3 changed files with 20 additions and 7 deletions

View File

@@ -46,11 +46,14 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set the date environmental variable
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Set up build cache
uses: actions/cache@v3
id: cache
with:
key: mkdocs-material-${{ github.ref }}
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-