Skip to content

Commit 80b63a4

Browse files
si618claude
andcommitted
Fix Nerdbank.GitVersioning shallow clone issue in GitHub Actions
Add fetch-depth: 0 to checkout actions to enable full git history for version height calculation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e32071a commit 80b63a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@main
21+
with:
22+
fetch-depth: 0
2123

2224
- name: Setup dotnet
2325
uses: actions/setup-dotnet@v4
@@ -43,6 +45,8 @@ jobs:
4345
steps:
4446
- name: Checkout
4547
uses: actions/checkout@main
48+
with:
49+
fetch-depth: 0
4650

4751
- name: Setup dotnet
4852
uses: actions/setup-dotnet@v4

0 commit comments

Comments
 (0)