mirror of
https://github.com/actions/cache.git
synced 2026-10-27 23:31:27 +03:00
Renamed variables and added tests
This commit is contained in:
1 parent
d91f5bd2fd
commit
3d4af52c52
16 files changed
+810
-988
No files matched your search
+2
-10
@@ -25,11 +25,7 @@ async function restoreImpl(
|
||||
}
|
||||
|
||||
const primaryKey = core.getInput(Inputs.Key, { required: true });
|
||||
stateProvider.setState(
|
||||
State.CachePrimaryKey,
|
||||
primaryKey,
|
||||
Outputs.InputtedKey
|
||||
);
|
||||
stateProvider.setState(State.CachePrimaryKey, primaryKey);
|
||||
|
||||
const restoreKeys = utils.getInputAsArray(Inputs.RestoreKeys);
|
||||
const cachePaths = utils.getInputAsArray(Inputs.Path, {
|
||||
@@ -54,11 +50,7 @@ async function restoreImpl(
|
||||
}
|
||||
|
||||
// Store the matched cache key in states
|
||||
stateProvider.setState(
|
||||
State.CacheMatchedKey,
|
||||
cacheKey,
|
||||
Outputs.MatchedKey
|
||||
);
|
||||
stateProvider.setState(State.CacheMatchedKey, cacheKey);
|
||||
|
||||
const isExactKeyMatch = utils.isExactKeyMatch(
|
||||
core.getInput(Inputs.Key, { required: true }),
|
||||
|
||||
Reference in new issue
Block a user