File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,17 +63,17 @@ jobs:
63
63
if : steps.cache.outputs.cache-hit != 'true'
64
64
run : python -m poetry install
65
65
- name : Install Material for MkDocs Insiders
66
- if : ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false ) && steps.cache.outputs.cache-hit != 'true'
66
+ if : ( github.event_name != 'pull_request' || github.secret_source == 'Actions' ) && steps.cache.outputs.cache-hit != 'true'
67
67
run : python -m poetry run pip install git+https://${{ secrets.SQLMODEL_MKDOCS_MATERIAL_INSIDERS }}@github.com/squidfunk/mkdocs-material-insiders.git
68
68
- uses : actions/cache@v3
69
69
with :
70
70
key : mkdocs-cards-${{ github.ref }}
71
71
path : .cache
72
72
- name : Build Docs
73
- if : github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true
73
+ if : github.event_name == 'pull_request' && github.secret_source != 'Actions'
74
74
run : python -m poetry run mkdocs build
75
75
- name : Build Docs with Insiders
76
- if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false
76
+ if : github.event_name != 'pull_request' || github.secret_source == 'Actions'
77
77
run : python -m poetry run mkdocs build --config-file mkdocs.insiders.yml
78
78
- uses : actions/upload-artifact@v3
79
79
with :
You can’t perform that action at this time.
0 commit comments