Skip to content

Commit 6ecca43

Browse files
Fix Nerdbank.GitVersioning shallow clone error in CI
Added fetch-depth: 0 to checkout steps to fetch full git history, which is required by Nerdbank.GitVersioning to calculate version heights. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 61ae634 commit 6ecca43

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323
with:
24+
fetch-depth: 0 # Fetch full history for Nerdbank.GitVersioning
2425
sparse-checkout: |
2526
Umbraco.Ai
2627
Umbraco.Ai.*
@@ -89,6 +90,8 @@ jobs:
8990
steps:
9091
- name: Checkout repository
9192
uses: actions/checkout@v4
93+
with:
94+
fetch-depth: 0 # Fetch full history for Nerdbank.GitVersioning
9295

9396
- name: Setup .NET
9497
uses: actions/setup-dotnet@v4

0 commit comments

Comments
 (0)