Change cache-save.ts file

This commit is contained in:
Ivan Zosimov (Akvelon INC) 2022-03-04 09:51:45 +03:00
parent 8d80cd6b60
commit 2d0c507407

View file

@ -21,12 +21,12 @@ export async function run() {
} }
const cachePackages = async () => { const cachePackages = async () => {
const cache = core.getInput('cache'); const cacheInput = core.getInput('cache');
if (!cache) { if (!cacheInput) {
return; return;
} }
const packageManager = cache.toUpperCase() === 'TRUE' ? 'default' : cache; const packageManager = cacheInput.toUpperCase() === 'TRUE' ? 'default' : cacheInput;
const state = core.getState(State.CacheMatchedKey); const state = core.getState(State.CacheMatchedKey);
const primaryKey = core.getState(State.CachePrimaryKey); const primaryKey = core.getState(State.CachePrimaryKey);