From 5a6ac8da07660cb5ff8e67a961eaac12bc9421f5 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Sun, 19 Mar 2023 19:10:20 +0100 Subject: [PATCH] ci: add revision to version jsons --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) 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" }