mirror of
https://github.com/actions/cache.git
synced 2025-09-07 18:13:39 -06:00
fix: merge remote-tracking branch 'upstream/main'
This commit is contained in:
commit
356864ca69
55 changed files with 17691 additions and 4478 deletions
|
@ -51,6 +51,9 @@ export async function restoreImpl(
|
|||
);
|
||||
|
||||
if (!cacheKey) {
|
||||
// `cache-hit` is intentionally not set to `false` here to preserve existing behavior
|
||||
// See https://github.com/actions/cache/issues/1466
|
||||
|
||||
if (failOnCacheMiss) {
|
||||
throw new Error(
|
||||
`Failed to restore cache entry. Exiting as fail-on-cache-miss is set. Input key: ${primaryKey}`
|
||||
|
@ -62,7 +65,6 @@ export async function restoreImpl(
|
|||
...restoreKeys
|
||||
].join(", ")}`
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue