Skip to content

Commit 4355d89

Browse files
committed
.github/workflows/ci.yml: Ensure that the tags are fetched when doing builds. Also, simplified command to lookup nbgv version.
1 parent 3b9987f commit 4355d89

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
5050
with:
5151
fetch-depth: 0
52+
fetch-tags: true
5253

5354
- name: Setup .NET 8.0
5455
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5
@@ -341,6 +342,7 @@ jobs:
341342
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
342343
with:
343344
fetch-depth: 0
345+
fetch-tags: true
344346

345347
- name: Get Tag Version
346348
id: tagversion
@@ -357,8 +359,7 @@ jobs:
357359
id: nbgv
358360
shell: pwsh
359361
run: |
360-
$nbgvOutput = & nbgv get-version
361-
$nugetVersion = ($nbgvOutput | Where-Object { $_ -match '^NuGetPackageVersion:' }) -replace '^NuGetPackageVersion:\s+', ''
362+
$nugetVersion = & nbgv get-version -v NuGetPackageVersion
362363
Add-Content $env:GITHUB_OUTPUT "version=$nugetVersion"
363364
364365
- name: Download NuGet Packages

0 commit comments

Comments
 (0)