Skip to content

Commit d8feebe

Browse files
Update github-cicd.yml
modify ci
1 parent ed36966 commit d8feebe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/github-cicd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ jobs:
3030
uses: actions/cache@v4
3131
with:
3232
path: ~/.nuget/packages
33-
key: ${{ runner.os }}-nuget-${{ hashFiles('src/**/packages.lock.json','tests/**/packages.lock.json') }}
33+
key: ${{ runner.os }}-nuget-${{ hashFiles('src/**/packages.lock.json') }}-${{ hashFiles('tests/**/packages.lock.json') }}
3434
restore-keys: |
3535
${{ runner.os }}-nuget-
3636
- name: Install dependencies
37+
if: steps.cache-nuget.outputs.cache-hit != 'true'
3738
run: dotnet restore --locked-mode
3839
- name: Build
3940
run: dotnet build --configuration Release --no-restore

0 commit comments

Comments
 (0)