diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86faf91..331d9c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,9 +60,9 @@ jobs: $COMMIT_MESSAGE = $(git log -1 --pretty=%B) $LAST_COMMITTER = $(git log -1 --pretty=format:%an) - $GetFileVersionOutput = dotnet msbuild Directory.Build.props /t:GetFileVersionForPackage /p:COMMIT_NUMBER=$COMMIT_NUMBER + $GetFileVersionOutput = dotnet msbuild ./Directory.Build.props /t:GetFileVersionForPackage /p:COMMIT_NUMBER=$COMMIT_NUMBER /p:VersionSuffix="" /p:UseDefaultSuffix=false "$GetFileVersionOutput" -match "(?<=FileVersion:)(.*)" > $null - $GetFileVersionOutput = $Matches[0] + $NUGET_PACKAGE_VERSION = $Matches[0] if ($IsPrerelease -eq $true) { $VersionTag = @("trunk", "stable")[$IsMaster] @@ -70,7 +70,7 @@ jobs: $NUGET_PACKAGE_VERSION = $NUGET_PACKAGE_VERSION + "-" + $VersionTag + "." + $Timestamp } - Write-Output "Packge version to be used: $NUGET_PACKAGE_VERSION" + Write-Output "Pacakge version to be used: $NUGET_PACKAGE_VERSION" echo "NUGET_PACKAGE_VERSION=$NUGET_PACKAGE_VERSION" >> $env:GITHUB_ENV echo "IsPrerelease=$IsPrerelease" >> $env:GITHUB_ENV echo "NUGET_PACKAGE_VERSION=$NUGET_PACKAGE_VERSION" >> $env:GITHUB_OUTPUT