From: Maxim Martynov Date: Wed, 11 May 2022 22:31:52 +0000 (+0300) Subject: 👷 Disable CI installing Material for MkDocs in forks (#4410) X-Git-Tag: 0.78.0~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c593a9cc9e1aa8387a3e004b0e3dc789ab926e9;p=thirdparty%2Ffastapi%2Ffastapi.git 👷 Disable CI installing Material for MkDocs in forks (#4410) Co-authored-by: Sebastián Ramírez --- diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 2482660f3b..bdef6ea8ac 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -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