diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index acfe8de03..e0440bf6b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -49,7 +49,7 @@ jobs: - name: 🛒 Checkout uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 - name: Check out doc site uses: actions/checkout@v4 with: diff --git a/lkdev/workflows/_common.py b/lkdev/workflows/_common.py index 3ef5d9482..2823a336d 100644 --- a/lkdev/workflows/_common.py +++ b/lkdev/workflows/_common.py @@ -5,9 +5,9 @@ PACKAGES = ["lenskit", "lenskit-funksvd", "lenskit-implicit"] -def step_checkout(options: Any = None) -> GHStep: +def step_checkout(options: Any = None, depth: int = 0) -> GHStep: return { "name": "🛒 Checkout", "uses": "actions/checkout@v4", - "with": {"fetch-depth": 0}, + "with": {"fetch-depth": depth}, } diff --git a/lkdev/workflows/docs.py b/lkdev/workflows/docs.py index ec345e19e..f2a435029 100644 --- a/lkdev/workflows/docs.py +++ b/lkdev/workflows/docs.py @@ -90,7 +90,7 @@ def job_publish_docs(): "needs": ["build"], "environment": "docs", "steps": [ - step_checkout(), + step_checkout(depth=1), { "name": "Check out doc site", "uses": "actions/checkout@v4",