diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ddc03558b..e3be36187 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -71,6 +71,7 @@ jobs: } $newVersion = [System.IO.File]::ReadAllText("$(Get-Location)\scratch\TEMP_gitver.txt") + $revision = [System.IO.File]::ReadAllText("$(Get-Location)\scratch\revision.txt") Remove-Item -Force -Recurse .\scratch if (Test-Path -Path $branchName) { @@ -81,6 +82,7 @@ jobs: } else { Move-Item -Force ".\canary.zip" ".\${branchName}\latest.zip" $versionData.AssemblyVersion = $newVersion + $versionData.Revision = $revision $versionData | add-member -Force -Name "GitSha" $newVersion -MemberType NoteProperty $versionData | ConvertTo-Json -Compress | Out-File ".\${branchName}\version" }