mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
ci: add revision to version jsons
This commit is contained in:
parent
6d41fa20b8
commit
5a6ac8da07
1 changed files with 2 additions and 0 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
|
@ -71,6 +71,7 @@ jobs:
|
||||||
}
|
}
|
||||||
|
|
||||||
$newVersion = [System.IO.File]::ReadAllText("$(Get-Location)\scratch\TEMP_gitver.txt")
|
$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
|
Remove-Item -Force -Recurse .\scratch
|
||||||
|
|
||||||
if (Test-Path -Path $branchName) {
|
if (Test-Path -Path $branchName) {
|
||||||
|
|
@ -81,6 +82,7 @@ jobs:
|
||||||
} else {
|
} else {
|
||||||
Move-Item -Force ".\canary.zip" ".\${branchName}\latest.zip"
|
Move-Item -Force ".\canary.zip" ".\${branchName}\latest.zip"
|
||||||
$versionData.AssemblyVersion = $newVersion
|
$versionData.AssemblyVersion = $newVersion
|
||||||
|
$versionData.Revision = $revision
|
||||||
$versionData | add-member -Force -Name "GitSha" $newVersion -MemberType NoteProperty
|
$versionData | add-member -Force -Name "GitSha" $newVersion -MemberType NoteProperty
|
||||||
$versionData | ConvertTo-Json -Compress | Out-File ".\${branchName}\version"
|
$versionData | ConvertTo-Json -Compress | Out-File ".\${branchName}\version"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue