From 84df626b6a4fd1a316987b7b57206e6cb923f931 Mon Sep 17 00:00:00 2001 From: Bruce Markham <219281+brucificus@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:34:22 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Adjusts=20Cache=20Key=20and=20Gl?= =?UTF-8?q?obal=20NuGet=20Packages=20Location?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 979e5688..67e962f0 100644 --- a/action.yml +++ b/action.yml @@ -9,11 +9,11 @@ inputs: nuget_config: description: "The path of the NuGet.config file that the restore script uses to configure NuGet." required: true - default: NuGet.PSGallery.config + default: ./NuGet.PSGallery.config packages_config: description: "The path of the packages.config file that the restore script uses to determine which nested dependencies to restore." required: true - default: packages.PSGallery.config + default: ./packages.PSGallery.config restore_run: description: "The command to invoke the restore script that restores nested dependencies." required: true @@ -36,7 +36,7 @@ runs: with: nuget-version: '6.x' - # set NUGET_PACKAGES to ~/.nuget/packages for non-Windows *only* + # set NUGET_PACKAGES to ${{ github.workspace }}/.nuget/packages for non-Windows *only* - name: Restore Nested PSGallery Modules if: steps.cacher.outputs.cache-hit != 'true' && runner.os != 'Windows' shell: pwsh @@ -44,7 +44,7 @@ runs: Set-PSRepository PSGallery -InstallationPolicy Trusted ${{ inputs.restore_run }} env: - NUGET_PACKAGES: ~/.nuget/packages + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - name: Restore Nested PSGallery Modules if: steps.cacher.outputs.cache-hit != 'true' && runner.os == 'Windows' shell: pwsh