Skip to content

Commit

Permalink
🔧 Adjusts Cache Key and Global NuGet Packages Location
Browse files Browse the repository at this point in the history
  • Loading branch information
brucificus committed Dec 20, 2024
1 parent e1ea535 commit 84df626
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -36,15 +36,15 @@ 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
run: |
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
Expand Down

0 comments on commit 84df626

Please sign in to comment.