1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-node synced 2025-06-16 16:54:09 +02:00

change getinput to getstate

This commit is contained in:
Dmitry Shibanov 2023-07-19 16:09:44 +02:00
parent ca2d4e0cdd
commit a4cd6f08ec
6 changed files with 62 additions and 32 deletions

View file

@ -60381,7 +60381,7 @@ process.on('uncaughtException', e => {
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
const cacheLock = core.getInput('cache');
const cacheLock = core.getState(constants_1.State.CachePackageManager);
yield cachePackages(cacheLock);
}
catch (error) {
@ -60692,6 +60692,7 @@ var LockType;
})(LockType = exports.LockType || (exports.LockType = {}));
var State;
(function (State) {
State["CachePackageManager"] = "SETUP_NODE_CACHE_PACKAGE_MANAGER";
State["CachePrimaryKey"] = "CACHE_KEY";
State["CacheMatchedKey"] = "CACHE_RESULT";
State["CachePaths"] = "CACHE_PATHS";