From cfc97be6aae06f91a3a47e59bd3360cff0863305 Mon Sep 17 00:00:00 2001 From: Angela Tan <69914680+angelatan2@users.noreply.github.com> Date: Thu, 4 Mar 2021 16:33:26 -0800 Subject: [PATCH] Fixed artifact builder paths to build properties (#482) --- .github/workflows/awslambda_release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/awslambda_release.yml b/.github/workflows/awslambda_release.yml index 012d73076a..36ad87dd4c 100644 --- a/.github/workflows/awslambda_release.yml +++ b/.github/workflows/awslambda_release.yml @@ -105,6 +105,9 @@ jobs: if: ${{ github.event.release }} name: Run ArtifactBuilder runs-on: windows-2019 + + env: + artifacts_script_path: ${{ github.workspace }}\build steps: - name: Checkout @@ -120,10 +123,9 @@ jobs: - name: Run ArtifactBuilder run: | - $rootDirectory = Resolve-Path "$(Split-Path -Parent $PSCommandPath)\.." $configuration = "Release" - $artifactBuilderCsproj = "$rootDirectory\build\ArtifactBuilder\ArtifactBuilder.csproj" - & "$rootDirectory\build\generateBuildProperties.ps1" -outputPath "$rootDirectory\build\BuildArtifacts\_buildProperties" + $artifactBuilderCsproj = "${{ env.artifacts_script_path }}\ArtifactBuilder\ArtifactBuilder.csproj" + & "${{ env.artifacts_script_path }}\generateBuildProperties.ps1" -outputPath "${{ env.artifacts_script_path }}\BuildArtifacts\_buildProperties" dotnet run --project "$artifactBuilderCsproj" NugetAwsLambdaOpenTracer $configuration shell: powershell