]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Fix installing Material for MkDocs Insiders in CI (#4897)
authorSebastián Ramírez <tiangolo@gmail.com>
Thu, 12 May 2022 18:10:57 +0000 (13:10 -0500)
committerGitHub <noreply@github.com>
Thu, 12 May 2022 18:10:57 +0000 (18:10 +0000)
.github/workflows/build-docs.yml

index bdef6ea8ac99425b9d0d098627078982007b18e5..505d66f9f15897f6dfd1e6c24d578e77f786089a 100644 (file)
@@ -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