From 337fe775b2b08fb3de3f0ef4b602f49bd93c4866 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Sat, 4 Nov 2023 09:29:35 -0400 Subject: [PATCH] update hash (#137) --- .github/workflows/mkdocs.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index 9341eee..2ac3806 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -21,17 +21,19 @@ jobs: with: python-version: 3.x - - name: Store cache_id - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - name: Calculate requirements hash + id: req-hash + run: echo "::set-output name=hash::$(sha256sum requirements-doc.txt | awk '{print $1}')" - name: Setup cache uses: actions/cache@v3 with: - key: mkdocs-material-${{ env.cache_id }} + key: mkdocs-material-${{ steps.req-hash.outputs.hash }} path: .cache restore-keys: | mkdocs-material- + - name: Install Requirements run: | sudo apt-get update &&