File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 47
47
- uses : actions/cache@v3
48
48
with :
49
49
path : ${{ github.workspace }}/.nuget/packages
50
- key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*') }}-${{ hashFiles( '**/*.Build.props') }}
50
+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*', '**/*.Build.props') }}
51
51
restore-keys : |
52
52
${{ runner.os }}-nuget-
53
53
- uses : actions/cache@v3
Original file line number Diff line number Diff line change 31
31
# Configuration
32
32
BUILD_CONFIG : ' Release'
33
33
GLOBAL_JSON_FILE : ' global.json'
34
- LOCKFILE_PATTERN : ' **/packages.lock.json '
34
+ CACHE_PATTERNS : ' [" **/*.[cf]sproj*", "**/*.Build.props"] '
35
35
PACKAGE_PATH : ' nupkg'
36
36
# .NET SDK related environment variables
37
37
DOTNET_NOLOGO : 1
63
63
uses : ' actions/cache@v4'
64
64
with :
65
65
path : ' ~/.nuget/packages'
66
- key : ' ${{ runner.os }}-nuget-${{ inputs.flavor }}-${{ hashFiles(env.LOCKFILE_PATTERN ) }}'
66
+ key : ' ${{ runner.os }}-nuget-${{ inputs.flavor }}-${{ hashFiles(fromJson( env.CACHE_PATTERNS) ) }}'
67
67
restore-keys : ' ${{ runner.os }}-nuget-${{ inputs.flavor }}-'
68
68
69
69
- name : ' .NET Restore'
Original file line number Diff line number Diff line change 31
31
- uses : actions/cache@v3
32
32
with :
33
33
path : ${{ github.workspace }}/.nuget/packages
34
- key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*') }}-${{ hashFiles( '**/*.Build.props') }}
34
+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*', '**/*.Build.props') }}
35
35
restore-keys : |
36
36
${{ runner.os }}-nuget-
37
37
Original file line number Diff line number Diff line change 30
30
- uses : actions/cache@v3
31
31
with :
32
32
path : ${{ github.workspace }}/.nuget/packages
33
- key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*') }}-${{ hashFiles( '**/*.Build.props') }}
33
+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*', '**/*.Build.props') }}
34
34
restore-keys : |
35
35
${{ runner.os }}-nuget-
36
36
60
60
- uses : actions/cache@v3
61
61
with :
62
62
path : ${{ github.workspace }}/.nuget/packages
63
- key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*') }}-${{ hashFiles( '**/*.Build.props') }}
63
+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*', '**/*.Build.props') }}
64
64
restore-keys : |
65
65
${{ runner.os }}-nuget-
66
66
You can’t perform that action at this time.
0 commit comments