Fix cache-hit state boolean cast

This commit is contained in:
rak
2025-03-18 23:14:54 +01:00
parent 6e3ec0f06d
commit ddcafbea28
3 changed files with 3 additions and 3 deletions

View File

@@ -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
View File

@@ -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;

View File

@@ -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.`