]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Disable CI installing Material for MkDocs in forks (#4410)
authorMaxim Martynov <martinov_m_s_@mail.ru>
Wed, 11 May 2022 22:31:52 +0000 (01:31 +0300)
committerGitHub <noreply@github.com>
Wed, 11 May 2022 22:31:52 +0000 (17:31 -0500)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
.github/workflows/build-docs.yml

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