From d37ebda1b5252d0ffb76c349d5e45702fa1ded85 Mon Sep 17 00:00:00 2001 From: SirBroccoli Date: Tue, 1 Oct 2024 05:27:30 +0200 Subject: [PATCH] Update CI-master_tests.yml --- .github/workflows/CI-master_tests.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI-master_tests.yml b/.github/workflows/CI-master_tests.yml index 26115356..a1002603 100644 --- a/.github/workflows/CI-master_tests.yml +++ b/.github/workflows/CI-master_tests.yml @@ -66,8 +66,16 @@ jobs: echo "build Any CPU" msbuild -m $env:Solution_Path /t:Rebuild /p:Configuration=$env:Configuration /p:Platform="Any CPU" - - name: Execute winpeas - run: winPEAS\winPEASexe\winPEAS\bin\$env:Configuration\winPEAS.exe + - name: Execute winPEAS + shell: pwsh + run: | + $Configuration = "Release" + $exePath = "winPEAS/winPEASexe/winPEAS/bin/$Configuration/winPEAS.exe" + if (Test-Path $exePath) { + & $exePath + } else { + Write-Error "winPEAS.exe not found at $exePath" + } # Copy the built versions - name: Copy all versions