Skip to content

Commit bee93ba

Browse files
Define COMMIT_NUMBER environment var (#782)
* Define COMMIT_NUMBER environment var to set the right FileVersion attribute on assembly files which was always 0. * Keep COMMIT_NUMBER local var as a msbuild parameter given that GITHUB_ENV var are not seen by the step that defined the var. It should be set a power shell var instead of a local var ( $Env:COMMIT_NUMBER = @($(git....) or keep msbuild explicit parameter /p:COMMIT_NUMBER=$COMMIT_NUMBER (cherry picked from commit f176e71)
1 parent f453656 commit bee93ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/Build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
Write-Output "Packge version to be used: $NUGET_PACKAGE_VERSION"
9797
9898
echo "NUGET_PACKAGE_VERSION=$NUGET_PACKAGE_VERSION" >> $env:GITHUB_ENV
99+
echo "COMMIT_NUMBER=$COMMIT_NUMBER" >> $env:GITHUB_ENV
99100
echo "IsPrerelease=$IsPrerelease" >> $env:GITHUB_ENV
100101
101102
echo "::set-output name=NUGET_PACKAGE_VERSION::$NUGET_PACKAGE_VERSION"

0 commit comments

Comments
 (0)