mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
ci: fix 元素修改
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -118,11 +118,13 @@ jobs:
|
||||
- name: Taggify Version
|
||||
run: |
|
||||
$csprojPath = "src/MaaWpfGui/MaaWpfGui.csproj"
|
||||
$csprojPath = Resolve-Path -Path $csprojPath
|
||||
[xml]$csproj = Get-Content -Path $csprojPath
|
||||
$csproj.Project.PropertyGroup.InformationalVersion = '${{ needs.meta.outputs.tag }}'
|
||||
$csproj.Project.PropertyGroup.Version = '${{ needs.meta.outputs.tag }}'
|
||||
$csproj.Project.PropertyGroup.FileVersion = '${{ needs.meta.outputs.tag }}'
|
||||
$csproj.Project.PropertyGroup.AssemblyVersion = '${{ needs.meta.outputs.tag }}'
|
||||
$node = $csproj.Project.PropertyGroup | where {$_.AssemblyName -ne $null}
|
||||
$node.InformationalVersion = '${{ needs.meta.outputs.tag }}'
|
||||
$node.Version = '${{ needs.meta.outputs.tag }}'
|
||||
$node.FileVersion = '${{ needs.meta.outputs.tag }}'
|
||||
$node.AssemblyVersion = '${{ needs.meta.outputs.tag }}'
|
||||
$csproj.Save($csprojPath)
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user