Fix cache-hit state boolean cast
This commit is contained in:
3
dist/cleanup/index.js
vendored
3
dist/cleanup/index.js
vendored
@@ -96664,7 +96664,8 @@ function save(id) {
|
|||||||
const packageManager = findPackageManager(id);
|
const packageManager = findPackageManager(id);
|
||||||
// Inputs are re-evaluated before the post action, so we want the original key used for restore
|
// Inputs are re-evaluated before the post action, so we want the original key used for restore
|
||||||
const primaryKey = core.getState(STATE_CACHE_PRIMARY_KEY);
|
const primaryKey = core.getState(STATE_CACHE_PRIMARY_KEY);
|
||||||
const cacheHit = core.getState(STATE_CACHE_HIT);
|
const cacheHitString = core.getState(STATE_CACHE_HIT);
|
||||||
|
const cacheHit = Boolean(cacheHitString);
|
||||||
if (!primaryKey) {
|
if (!primaryKey) {
|
||||||
core.warning('Error retrieving key from state.');
|
core.warning('Error retrieving key from state.');
|
||||||
return;
|
return;
|
||||||
|
|||||||
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
@@ -131913,7 +131913,8 @@ function save(id) {
|
|||||||
const packageManager = findPackageManager(id);
|
const packageManager = findPackageManager(id);
|
||||||
// Inputs are re-evaluated before the post action, so we want the original key used for restore
|
// Inputs are re-evaluated before the post action, so we want the original key used for restore
|
||||||
const primaryKey = core.getState(STATE_CACHE_PRIMARY_KEY);
|
const primaryKey = core.getState(STATE_CACHE_PRIMARY_KEY);
|
||||||
const cacheHit = core.getState(STATE_CACHE_HIT);
|
const cacheHitString = core.getState(STATE_CACHE_HIT);
|
||||||
|
const cacheHit = Boolean(cacheHitString);
|
||||||
if (!primaryKey) {
|
if (!primaryKey) {
|
||||||
core.warning('Error retrieving key from state.');
|
core.warning('Error retrieving key from state.');
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -136,7 +136,8 @@ export async function save(id: string) {
|
|||||||
|
|
||||||
// Inputs are re-evaluated before the post action, so we want the original key used for restore
|
// Inputs are re-evaluated before the post action, so we want the original key used for restore
|
||||||
const primaryKey = core.getState(STATE_CACHE_PRIMARY_KEY);
|
const primaryKey = core.getState(STATE_CACHE_PRIMARY_KEY);
|
||||||
const cacheHit = core.getState(STATE_CACHE_HIT);
|
const cacheHitString = core.getState(STATE_CACHE_HIT);
|
||||||
|
const cacheHit = Boolean(cacheHitString);
|
||||||
|
|
||||||
if (!primaryKey) {
|
if (!primaryKey) {
|
||||||
core.warning('Error retrieving key from state.');
|
core.warning('Error retrieving key from state.');
|
||||||
|
|||||||
Reference in New Issue
Block a user