Fix cache-hit state boolean cast
This commit is contained in:
2
dist/cleanup/index.js
vendored
2
dist/cleanup/index.js
vendored
@@ -96670,7 +96670,7 @@ function save(id) {
|
|||||||
core.warning('Error retrieving key from state.');
|
core.warning('Error retrieving key from state.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!!cacheHit || cacheHit !== 'false') {
|
if (cacheHit === 'true') {
|
||||||
// no change in target directories
|
// no change in target directories
|
||||||
core.info(`${cacheHit}: Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
|
core.info(`${cacheHit}: Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
|
||||||
return;
|
return;
|
||||||
|
|||||||
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@@ -131919,7 +131919,7 @@ function save(id) {
|
|||||||
core.warning('Error retrieving key from state.');
|
core.warning('Error retrieving key from state.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!!cacheHit || cacheHit !== 'false') {
|
if (cacheHit === 'true') {
|
||||||
// no change in target directories
|
// no change in target directories
|
||||||
core.info(`${cacheHit}: Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
|
core.info(`${cacheHit}: Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ export async function save(id: string) {
|
|||||||
core.warning('Error retrieving key from state.');
|
core.warning('Error retrieving key from state.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!!cacheHit || cacheHit !== 'false') {
|
if (cacheHit === 'true') {
|
||||||
// no change in target directories
|
// no change in target directories
|
||||||
core.info(
|
core.info(
|
||||||
`${cacheHit}: Cache hit occurred on the primary key ${primaryKey}, not saving cache.`
|
`${cacheHit}: Cache hit occurred on the primary key ${primaryKey}, not saving cache.`
|
||||||
|
|||||||
Reference in New Issue
Block a user