mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-19 12:54:45 +00:00
change getinput to getstate for cache (#816)
This commit is contained in:
parent
d82f92a0eb
commit
bea5baf987
6 changed files with 62 additions and 32 deletions
3
dist/cache-save/index.js
vendored
3
dist/cache-save/index.js
vendored
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue