From 968763aeea6f86037d121a16408548760c2e155a Mon Sep 17 00:00:00 2001 From: Manuel de la Pena Date: Wed, 15 Feb 2023 16:19:26 -0500 Subject: [PATCH] [CI] Enure the pwsh is in the right dir. Follow up of https://github.com/dotnet/maui/pull/13264 We need to be sure that the pwsh is executed from the right dir, the simplest way is to set the working dir for the step. --- eng/pipelines/common/pack.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eng/pipelines/common/pack.yml b/eng/pipelines/common/pack.yml index 1db1fe361e4f..8929735b8c0b 100644 --- a/eng/pipelines/common/pack.yml +++ b/eng/pipelines/common/pack.yml @@ -48,18 +48,24 @@ steps: - pwsh: ./build.ps1 --target=dotnet --configuration="Release" --verbosity=diagnostic --nugetsource="${{ parameters.nugetFolder }}" displayName: 'Install .NET' retryCountOnTaskFailure: 3 + workingDirectory: ${{ parameters.checkoutDirectory }} env: DOTNET_TOKEN: $(dotnetbuilds-internal-container-read-token) PRIVATE_BUILD: $(PrivateBuild) + - pwsh: ./build.ps1 --target=dotnet-pack --configuration="Release" --verbosity=diagnostic --nugetsource="${{ parameters.nugetFolder }}" displayName: 'Pack .NET Maui' name: PackMaui + workingDirectory: ${{ parameters.checkoutDirectory }} env: DOTNET_TOKEN: $(dotnetbuilds-internal-container-read-token) PRIVATE_BUILD: $(PrivateBuild) + - ${{ if eq(parameters.platform, 'Windows') }}: - pwsh: ./build.ps1 --target=dotnet-diff --configuration="Release" --verbosity=diagnostic displayName: 'Diff .NET Maui artifacts with NuGet' + workingDirectory: ${{ parameters.checkoutDirectory }} + # artifacts - task: CopyFiles@2 condition: always()