mirror of
https://github.com/actions/cache.git
synced 2025-04-21 19:46:46 +00:00
Restore original behavior of cache-hit
output (#1467)
* Restore original behavior of `cache-hit` output * Bump version to 4.1.1
This commit is contained in:
parent
2cdf405574
commit
3624ceb22c
9 changed files with 18 additions and 12 deletions
|
@ -51,7 +51,9 @@ export async function restoreImpl(
|
|||
);
|
||||
|
||||
if (!cacheKey) {
|
||||
core.setOutput(Outputs.CacheHit, false.toString());
|
||||
// `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}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue