Skip to content

Commit f605907

Browse files
committed
👷‍♀️ fetch tags and history
1 parent 374b44c commit f605907

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

.github/workflows/continuous.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
2729
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
2830
uses: actions/cache@v4
2931
with:

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
2729
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
2830
uses: actions/cache@v4
2931
with:

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0
3234
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
3335
uses: actions/cache@v4
3436
with:

build/Build.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,21 @@
1515
"continuous",
1616
GitHubActionsImage.UbuntuLatest,
1717
On = [GitHubActionsTrigger.Push],
18+
FetchDepth = 0,
1819
InvokedTargets = [nameof(Test), nameof(Pack)])]
1920
[GitHubActions(
2021
"release",
2122
GitHubActionsImage.UbuntuLatest,
2223
OnPushBranches = ["main"],
2324
OnPushTags = ["[0-9]+.[0-9]+.[0-9]+"],
25+
FetchDepth = 0,
2426
ImportSecrets = [nameof(NuGetApiKey)],
2527
InvokedTargets = [nameof(Publish)])]
2628
[GitHubActions(
2729
"pr",
2830
GitHubActionsImage.UbuntuLatest,
2931
On = [GitHubActionsTrigger.PullRequest],
32+
FetchDepth = 0,
3033
InvokedTargets = [nameof(Test), nameof(Pack)])]
3134
class Build : NukeBuild {
3235
public static int Main() => Execute<Build>(x => x.Compile);

0 commit comments

Comments
 (0)