We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e696a commit b9e0994Copy full SHA for b9e0994
hugoalh.GitHubActionsToolkit/module/cache.psm1
@@ -45,8 +45,10 @@ Function Restore-Cache {
45
Process {
46
[Hashtable]$Argument = @{
47
'primaryKey' = $Key[0]
48
- 'restoreKeys' = $Key |
49
- Select-Object -SkipIndex 0
+ 'restoreKeys' = (
+ $Key |
50
+ Select-Object -SkipIndex 0
51
+ ) ?? @()
52
'paths' = ($PSCmdlet.ParameterSetName -ieq 'LiteralPath') ? (
53
$LiteralPath |
54
ForEach-Object -Process { [WildcardPattern]::Escape($_) }
0 commit comments