Change code according to review points

This commit is contained in:
Ivan Zosimov (Akvelon INC) 2022-02-28 15:30:28 +03:00
parent 86d1cd689b
commit 8d80cd6b60
5 changed files with 18 additions and 16 deletions

View file

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