change getinput to getstate for cache ()

This commit is contained in:
Dmitry Shibanov 2023-08-10 16:32:24 +02:00 committed by GitHub
parent d82f92a0eb
commit bea5baf987
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 62 additions and 32 deletions

View file

@ -16,7 +16,7 @@ process.on('uncaughtException', e => {
export async function run() {
try {
const cacheLock = core.getInput('cache');
const cacheLock = core.getState(State.CachePackageManager);
await cachePackages(cacheLock);
} catch (error) {
core.setFailed(error.message);