From 9fdcb60737eea5b9745cefc4766d6df4ec6033bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkan=20=C3=87olak?= Date: Wed, 24 Jan 2024 21:38:16 +0100 Subject: [PATCH] Start Restore Dependencies with WorkingDirectory --- .github/workflows/build.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e30de1d..8af53b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +ecπππname: Build on: [push] @@ -17,14 +17,9 @@ jobs: with: dotnet-version: '7.0' - - name: Set restore directory - run: cd restore - - - name: Run run Restore-Dependencies script - run: pwsh ./Restore-Dependencies.ps1 -Verbose + - name: Run Restore-Dependencies script + run: pwsh -Command "Start-Process pwsh -ArgumentList '-File','$PWD/restore/Restore-Dependencies.ps1','-Verbose' -WorkingDirectory $PWD/restore" - - name: Go back to build directory - run: cd .. - name: Run Build-Release run: pwsh scripts/Build-Release.ps1 -Verbose