]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
💚 Fix disabling install of Material for MkDocs Insiders in forks, strike 1 ⚾ (#2340)
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 10 Nov 2020 19:51:56 +0000 (20:51 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 19:51:56 +0000 (20:51 +0100)
.github/workflows/build-docs.yml

index 48ec023fac9bfb14bbeef45267b37bfdedd86a75..f575cbf5ee11a45481e11c8a04355f7c24911f84 100644 (file)
@@ -21,7 +21,7 @@ jobs:
       - name: Install docs extras
         run: python3.7 -m flit install --extras doc
       - name: Install Material for MkDocs Insiders
-        if: github.event.repository.fork == false
+        if: github.event.pull_request.head.repo.fork == false
         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