From: Sebastián Ramírez Date: Thu, 12 May 2022 18:10:57 +0000 (-0500) Subject: 👷 Fix installing Material for MkDocs Insiders in CI (#4897) X-Git-Tag: 0.78.0~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f31ad41dda3e01c9f65b5454c17fc30918d2079b;p=thirdparty%2Ffastapi%2Ffastapi.git 👷 Fix installing Material for MkDocs Insiders in CI (#4897) --- diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index bdef6ea8ac..505d66f9f1 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -22,7 +22,7 @@ jobs: id: cache with: path: ${{ env.pythonLocation }} - key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-docs-v2 + key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-v03 - name: Install Flit if: steps.cache.outputs.cache-hit != 'true' run: python3.7 -m pip install flit @@ -30,7 +30,7 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: python3.7 -m flit install --deps production --extras doc - name: Install Material for MkDocs Insiders - if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && steps.cache.outputs.cache-hit != 'true' + if: ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false ) && steps.cache.outputs.cache-hit != 'true' run: pip install git+https://${{ secrets.ACTIONS_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git - name: Build Docs run: python3.7 ./scripts/docs.py build-all