diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index af42466a1..c5b3e0985 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -243,7 +243,7 @@ jobs: sleep -Seconds 2; $process.CloseMainWindow() | Out-Null; $process.WaitForExit(); - $process.ExitCode + return $process.ExitCode # Upload the binary (to track binary size trends) - if: matrix.platform == 'x64' @@ -271,7 +271,7 @@ jobs: sleep -Seconds 2; $process.CloseMainWindow() | Out-Null; $process.WaitForExit(); - $process.ExitCode + return $process.ExitCode # Upload the binary again (with a different name) - if: matrix.platform == 'x64' @@ -297,7 +297,7 @@ jobs: sleep -Seconds 2; $process.CloseMainWindow() | Out-Null; $process.WaitForExit(); - $process.ExitCode + return $process.ExitCode # Download the NuGet packages generated in the previous job and use them # to build and run the sample project referencing them. This is used as