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 &&