Skip to content

Commit 3eb5099

Browse files
committed
Work CI-CD
- Update github action to use global nuget packages location and packages.lock.json.
1 parent ed7227d commit 3eb5099

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,12 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v3
30-
- name: Find packages folder
31-
id: find_packages
32-
run: |
33-
$solutionLocation = (Get-ChildItem -Path "$Env:GITHUB_WORKSPACE" -Include $Env:SOLUTION -Recurse)
34-
$packagesLocation = $solutionLocation[0].Directory.FullName+"\packages"
35-
echo "Found packages folder for solution at: $packagesLocation"
36-
echo "NUGET_PACKAGES=$packagesLocation" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
37-
shell: pwsh
38-
- name: Cache nano NuGets
39-
uses: actions/cache@v3
30+
- uses: actions/cache@v3
4031
with:
41-
path: ${{ env.NUGET_PACKAGES }}
42-
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.config') }}
32+
path: ~/.nuget/packages
33+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
34+
restore-keys: |
35+
${{ runner.os }}-nuget-
4336
- name: Update dependencies
4437
uses: nanoframework/nanodu@v1
4538
with:

0 commit comments

Comments
 (0)