From 8dbbb66a420b89ca55bc3a6d891565296a74ebd7 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Sun, 15 Oct 2023 12:54:47 +0800 Subject: [PATCH] test: test ci --- .github/workflows/ci.yml | 2 +- src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acc84135b3..35cf6aff5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,7 +119,7 @@ jobs: run: | $csprojPath = "src/MaaWpfGui/MaaWpfGui.csproj" $csprojPath = Resolve-Path -Path $csprojPath - $tag = ${{ needs.meta.outputs.tag }} -replace '.*?/', '' + $tag = '${{ needs.meta.outputs.tag }}' -replace '.*?/', '' $tag -match '\d+(\.\d+){0,3}' $match = $Matches[0] [xml]$csproj = Get-Content -Path $csprojPath diff --git a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs index 0a5f834e86..8242c4e221 100644 --- a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs @@ -79,9 +79,7 @@ namespace MaaWpfGui.ViewModels.UI /// public string CoreVersion => _coreVersion; - private static readonly string _uiVersion = FileVersionInfo - .GetVersionInfo(Application.ResourceAssembly.Location) - .ProductVersion.Split('+')[0]; + private static readonly string _uiVersion = FileVersionInfo.GetVersionInfo(Application.ResourceAssembly.Location).ProductVersion.Split('+')[0]; /// /// Gets the UI version.