From 5321a9d67660e530afccecf194482269a8c779fc Mon Sep 17 00:00:00 2001 From: Taiizor <41683699+Taiizor@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:51:18 +0300 Subject: [PATCH] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 34 ++++------------------------ 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index d8c78a50..d79cbe49 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -47,37 +47,13 @@ jobs: with: fetch-depth: 0 - # Ensure .editorconfig exists in all solution directories - - name: Apply .editorconfig to all solutions + # Ensure .editorconfig exists in the solution's directory + - name: Copy .editorconfig for current solution shell: pwsh run: | - $solutions = @( - "src/ReaLTaiizor.sln", - "sample/ReaLTaiizor.Defender/ReaLTaiizor.Defender.sln", - "sample/ReaLTaiizor.GenshinImpact/ReaLTaiizor.GenshinImpact.sln", - "sample/ReaLTaiizor.Instagram/ReaLTaiizor.Instagram.sln", - "sample/ReaLTaiizor.Kaspersky/ReaLTaiizor.Kaspersky.sln", - "sample/ReaLTaiizor.Login/ReaLTaiizor.Login.sln", - "sample/ReaLTaiizor.Payment/ReaLTaiizor.Payment.sln", - "sample/ReaLTaiizor.Player/ReaLTaiizor.Player.sln", - "sample/ReaLTaiizor.Rufus/ReaLTaiizor.Rufus.sln", - "sample/ReaLTaiizor.Splash/ReaLTaiizor.Splash.sln", - "sample/ReaLTaiizor.Store/ReaLTaiizor.Store.sln", - "sample/ReaLTaiizor.XAMPP/ReaLTaiizor.XAMPP.sln", - "ready/ReaLTaiizor.AppLocker/ReaLTaiizor.AppLocker.sln", - "ready/ReaLTaiizor.Hashing/ReaLTaiizor.Hashing.sln", - "ready/ReaLTaiizor.MAChanger/ReaLTaiizor.MAChanger.sln", - "ready/ReaLTaiizor.Nerator/ReaLTaiizor.Nerator.sln", - "ready/ReaLTaiizor.Portscan/ReaLTaiizor.Portscan.sln", - "ready/ReaLTaiizor.Stopwatch/ReaLTaiizor.Stopwatch.sln", - "ready/ReaLTaiizor.Translate/ReaLTaiizor.Translate.sln", - "demo/ReaLTaiizor.UI/ReaLTaiizor.UI.sln", - "demo/ReaLTaiizor.UX/ReaLTaiizor.UX.sln" - ) - foreach ($solution in $solutions) { - $solutionDir = Split-Path -Path $solution - Copy-Item -Path ".editorconfig" -Destination "$solutionDir\.editorconfig" -Force - } + $solutionPath = "${{ matrix.solution }}" + $solutionDir = Split-Path -Path $solutionPath + Copy-Item -Path ".editorconfig" -Destination "$solutionDir\.editorconfig" -Force # Install the .NET Core workload - name: Install .NET Core