Skip to content

Commit

Permalink
tweak git fetch depth for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 3, 2024
1 parent b9f6d60 commit 1e4473a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions lkdev/workflows/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}
2 changes: 1 addition & 1 deletion lkdev/workflows/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1e4473a

Please sign in to comment.