From 5451319fc97d2051bc90d88495241050444c1dde Mon Sep 17 00:00:00 2001 From: Svetlana Brennan <50715937+svetlanabrennan@users.noreply.github.com> Date: Wed, 28 Aug 2024 12:16:43 -0500 Subject: [PATCH] Test finding spec file --- .github/workflows/azure-site-extension.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/azure-site-extension.yml b/.github/workflows/azure-site-extension.yml index 3510b80459..70040a4881 100644 --- a/.github/workflows/azure-site-extension.yml +++ b/.github/workflows/azure-site-extension.yml @@ -46,9 +46,14 @@ jobs: echo "AGENT_VERSION=$env:npm_agent_version" | Out-File -FilePath $env:GITHUB_ENV -Append - name: Update nuget spec file name - # working-directory: cloud-tooling/azure-site-extension/Content run: | - Rename-Item -Path "D:\a\node-newrelic\cloud-tooling\azure-site-extension\Content\zzzNA.Azure.Websites.Extension.NA-`$ARCH`$.nuspec" -NewName "D:\a\node-newrelic\cloud-tooling\azure-site-extension\Content\zzzNA.Azure.Websites.Extension.NA-${{ matrix.arch }}.nuspec" + $baseDir = "D:\a\node-newrelic\node-newrelic" + $contentDir = Join-Path $baseDir "cloud-tooling\azure-site-extension\Content" + $oldName = Join-Path $contentDir "zzzNA.Azure.Websites.Extension.NA-`$ARCH`$.nuspec" + $newName = Join-Path $contentDir "zzzNA.Azure.Websites.Extension.NA-${{ matrix.arch }}.nuspec" + Write-Host "Looking for file: $oldName" + Rename-Item -Path $oldName -NewName $newName + Write-Host "File renamed successfully to: $newName" - name: Set package filename run: |