From c02e61611b994a2949631c9a32a74f7724f8277f Mon Sep 17 00:00:00 2001 From: Jack Ye <1160210343@qq.com> Date: Wed, 12 Mar 2025 17:33:45 +0800 Subject: [PATCH 1/2] Update build.yml --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d23ee42..56f538a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,6 +36,12 @@ jobs: - name: Build run: dotnet build ${{ env.Project_Path }} --configuration Release --no-restore + # Get package version + - name: Get Package Version + run: | + $version = [system.diagnostics.fileversioninfo]::getversioninfo("Flow.Launcher.Localization\bin\Release\netstandard2.0\Flow.Launcher.Localization.dll").productversion + echo "release_version=$version" | out-file -filepath $env:github_env -encoding utf-8 -append + # Execute all unit tests in the solution - name: Execute unit tests if: github.event_name == 'push' && github.ref != 'refs/heads/main' From 626032b7b963c7ece2ba4137957b453fc4a65817 Mon Sep 17 00:00:00 2001 From: Jack Ye <1160210343@qq.com> Date: Wed, 12 Mar 2025 18:01:14 +0800 Subject: [PATCH 2/2] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 56f538a..1100855 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,7 +39,7 @@ jobs: # Get package version - name: Get Package Version run: | - $version = [system.diagnostics.fileversioninfo]::getversioninfo("Flow.Launcher.Localization\bin\Release\netstandard2.0\Flow.Launcher.Localization.dll").productversion + $version = [system.diagnostics.fileversioninfo]::getversioninfo("Flow.Launcher.Localization\bin\Release\netstandard2.0\Flow.Launcher.Localization.dll").fileversion echo "release_version=$version" | out-file -filepath $env:github_env -encoding utf-8 -append # Execute all unit tests in the solution