Skip to content

Commit 0de2cf9

Browse files
committed
GitVersion improvements
1 parent fda19c9 commit 0de2cf9

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/ci-build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 400
2123
- name: Setup .NET 8
2224
uses: actions/setup-dotnet@v4
2325
with:

.github/workflows/ci-publish.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
same_sha: ${{ steps.check.outputs.same_sha }}
2020
steps:
2121
- uses: actions/checkout@v4
22-
with:
23-
fetch-depth: 0
22+
with:
23+
fetch-depth: 400
2424

2525
- name: Get Activity Short Circuit
2626
id: check
@@ -52,6 +52,8 @@ jobs:
5252

5353
steps:
5454
- uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 400
5557
- name: Setup .NET 8
5658
uses: actions/setup-dotnet@v4
5759
with:
@@ -77,7 +79,7 @@ jobs:
7779
format: YYYYMMDD-HHmmSS
7880
- uses: actions/checkout@v4
7981
with:
80-
fetch-depth: 0
82+
fetch-depth: 400
8183
- name: Setup .NET 8
8284
uses: actions/setup-dotnet@v4
8385
with:
@@ -114,7 +116,7 @@ jobs:
114116
steps:
115117
- uses: actions/checkout@v4
116118
with:
117-
fetch-depth: 0
119+
fetch-depth: 400
118120
- name: Reset nightly to master
119121
run: |
120122
head_sha=$(git rev-parse --verify HEAD)

Directory.Build.props

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<ImplicitUsings>true</ImplicitUsings>
7-
<VersionPrefix>2.67</VersionPrefix>
87
</PropertyGroup>
98

109
</Project>

Directory.Build.targets

+4
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
<Exec Condition="'$(IsWindows)'=='true' And $(PackageId) != ''" Command="RD /S /Q &quot;%25USERPROFILE%25\.nuget\packages\$(PackageId)&quot;" />
55
<Exec Condition="'$(IsLinux)'=='true' And $(PackageId) != ''" Command="rm -rf &quot;%25USERPROFILE%25\.nuget\packages\$(PackageId)&quot;" />
66
</Target>
7+
8+
<PropertyGroup Condition="'$(GITVERSION_NO_BUILD)' != 'true'">
9+
<GitVersionTask>true</GitVersionTask>
10+
</PropertyGroup>
711

812
</Project>

0 commit comments

Comments
 (0)