From e656c805e89a16d2936e59a84bfcbca7f08926b9 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sat, 17 Jan 2026 11:51:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D.NET=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=8A=A5=E5=91=8A=E8=B7=AF=E5=BE=84=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改TRX日志文件名为动态格式{assembly}.trx - 更新测试结果输出目录为GitHub工作空间路径 - 修正测试报告步骤中的路径引用以匹配实际输出位置 - [skip ci] --- .github/workflows/auto-tag.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index d159588..1193d55 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -65,14 +65,15 @@ jobs: dotnet test \ --no-build \ -c Release \ - --logger "trx;LogFileName=test-results.trx" \ - --results-directory ./TestResults # 指定统一的输出目录 + --logger "trx;LogFileName={assembly}.trx" \ + --results-directory ${{ github.workspace }}/TestResults + - name: Test Report uses: dorny/test-reporter@v2 if: always() with: name: .NET Test Results - path: TestResults/*.trx + path: ${{ github.workspace }}/TestResults/*.trx reporter: dotnet-trx # 步骤三:计算下一个版本号(若未被跳过) # 自动解析当前最新标签并递增修订号生成新的语义化版本号