Skip to content

Commit 19efa77

Browse files
authored
👷 Fix install MkDocs Insiders only when available (#778)
1 parent 73efcb3 commit 19efa77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ jobs:
5353
id: cache
5454
with:
5555
path: ${{ env.pythonLocation }}
56-
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt') }}-v01
56+
key: ${{ runner.os }}-python-docs-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-docs.txt') }}-v02
5757
- name: Install docs extras
5858
if: steps.cache.outputs.cache-hit != 'true'
5959
run: pip install -r requirements-docs.txt
6060
- name: Install Material for MkDocs Insiders
61-
if: ( github.event_name != 'pull_request' || github.secret_source != 'Actions' ) && steps.cache.outputs.cache-hit != 'true'
61+
if: ( github.event_name != 'pull_request' || github.secret_source == 'Actions' ) && steps.cache.outputs.cache-hit != 'true'
6262
run: |
6363
pip install git+https://${{ secrets.TYPER_MKDOCS_MATERIAL_INSIDERS }}@github.com/squidfunk/mkdocs-material-insiders.git
6464
pip install git+https://${{ secrets.TYPER_MKDOCS_MATERIAL_INSIDERS }}@github.com/pawamoy-insiders/griffe-typing-deprecated.git
@@ -71,7 +71,7 @@ jobs:
7171
if: github.event_name == 'pull_request' && github.secret_source != 'Actions'
7272
run: python -m mkdocs build
7373
- name: Build Docs with Insiders
74-
if: ( github.event_name != 'pull_request' || github.secret_source != 'Actions' )
74+
if: ( github.event_name != 'pull_request' || github.secret_source == 'Actions' )
7575
run: python -m mkdocs build --config-file mkdocs.insiders.yml
7676

7777
- uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)