From 00291e722347d8324c19dc60b101433944ddebef Mon Sep 17 00:00:00 2001 From: Jordy Hulck Date: Wed, 30 Oct 2024 12:07:17 +0000 Subject: [PATCH] Update CI workflows to set fetch-depth to 0 for GitVersion --- .github/workflows/ci.yml | 6 ++++++ build/Build.cs | 1 + 2 files changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c2f400..5c7b1da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,8 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: 'Cache: .nuke/temp, ~/.nuget/packages' uses: actions/cache@v4 with: @@ -43,6 +45,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: 'Cache: .nuke/temp, ~/.nuget/packages' uses: actions/cache@v4 with: @@ -62,6 +66,8 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: 'Cache: .nuke/temp, ~/.nuget/packages' uses: actions/cache@v4 with: diff --git a/build/Build.cs b/build/Build.cs index cba1135..4b59a80 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -18,6 +18,7 @@ GitHubActionsImage.WindowsLatest, GitHubActionsImage.UbuntuLatest, GitHubActionsImage.MacOsLatest, + FetchDepth = 0, InvokedTargets = new[] { nameof(Test), nameof(Pack) }, On = new[] { GitHubActionsTrigger.Push, GitHubActionsTrigger.PullRequest, GitHubActionsTrigger.WorkflowDispatch }, PublishArtifacts = true)]