Skip to content

Commit 2882ce1

Browse files
Fix dotnet-version usage (#1)
1 parent 1456782 commit 2882ce1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ jobs:
3131
- name: Install dotnet-gitversion
3232
run: |
3333
echo ":/github/home/.dotnet/tools" >> $GITHUB_PATH
34-
dotnet tool install -g GitVersion.Tool --version "6.0.5" --ignore-failed-sources
34+
dotnet tool install -g GitVersion.Tool --version "6.5.0" --ignore-failed-sources
3535
shell: bash
3636
- name: Resolve Version
3737
id: resolve-version
3838
shell: pwsh
3939
working-directory: ./
40-
run: |
41-
$rawVersion = dotnet-gitversion | ConvertFrom-Json
40+
run: |
41+
$dotnetVersionOutput = dotnet-gitversion
42+
Write-Output $dotnetVersionOutput
43+
$rawVersion = $dotnetVersionOutput | ConvertFrom-Json
4244
Write-Output $rawVersion
4345
$semVer = $rawVersion.SemVer
4446
Write-Output "Resolved version $semVer"

GitVersion.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
build-metadata-padding: 4
2-
mode: ContinuousDeployment
31
branches:
42
main:
5-
tag: beta
3+
label: beta
64
pull-request:
7-
tag: alpha
5+
label: alpha{Number}

0 commit comments

Comments
 (0)