Skip to content

Commit 6b1696e

Browse files
committed
Fix COMMIT_NUMBER environment variable definition
(cherry picked from commit a582425)
1 parent 7263053 commit 6b1696e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/Build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ jobs:
7777
}
7878
}
7979
80+
$COMMIT_NUMBER = @($(git rev-list --count origin/master..), $(git rev-list --count HEAD))[$IsPrerelease]
81+
echo "COMMIT_NUMBER=$COMMIT_NUMBER" >> $env:COMMIT_NUMBER
82+
8083
$GetFileVersionOutput = dotnet msbuild dotnet/Directory.Build.props /t:GetFileVersionForPackage
8184
"$GetFileVersionOutput" -match "(?<=FileVersion:)(.*)" > $null
8285
$GetFileVersionOutput = $Matches[0]
@@ -91,7 +94,6 @@ jobs:
9194
9295
Write-Output "Packge version to be used: $NUGET_PACKAGE_VERSION"
9396
94-
$COMMIT_NUMBER = @($(git rev-list --count origin/master..), $(git rev-list --count HEAD))[$IsPrerelease]
9597
$COMMIT_MESSAGE = $(git log -1 --pretty=%B)
9698
$LAST_COMMITTER = $(git log -1 --pretty=format:%an)
9799

0 commit comments

Comments
 (0)