ci: limit downloads from pypi stats to main branch (#3835)

At some point, we can run on a cron schedule
This commit is contained in:
Eugene Yurtsev
2025-03-13 14:24:55 -04:00
committed by GitHub
parent c85e246c32
commit 678b512aed
3 changed files with 43 additions and 6 deletions
+8 -1
View File
@@ -102,7 +102,14 @@ jobs:
- name: Build llms-text
run: make llms-text
- name: Build site
run: make build-docs
run: |
# If this is main branch, then we want to download stats. we do this
# with the env variable DOWNLOAD_STATS=true
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
DOWNLOAD_STATS=true make build-docs
else
make build-docs
fi
env:
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.MKDOCS_GIT_COMMITTERS_APIKEY }}
OPENAI_API_KEY: sf-proj-1234567890 # fake placeholder, shouldn't actually be used