mirror of
https://github.com/actions/cache.git
synced 2025-06-18 23:02:57 -06:00
Fixed inputs
This commit is contained in:
parent
61aa90bfc3
commit
d91f5bd2fd
10 changed files with 95 additions and 44 deletions
|
@ -25,7 +25,11 @@ async function restoreImpl(
|
|||
}
|
||||
|
||||
const primaryKey = core.getInput(Inputs.Key, { required: true });
|
||||
stateProvider.setState(State.CachePrimaryKey, primaryKey);
|
||||
stateProvider.setState(
|
||||
State.CachePrimaryKey,
|
||||
primaryKey,
|
||||
Outputs.InputtedKey
|
||||
);
|
||||
|
||||
const restoreKeys = utils.getInputAsArray(Inputs.RestoreKeys);
|
||||
const cachePaths = utils.getInputAsArray(Inputs.Path, {
|
||||
|
@ -50,7 +54,11 @@ async function restoreImpl(
|
|||
}
|
||||
|
||||
// Store the matched cache key in states
|
||||
stateProvider.setState(State.CacheMatchedKey, cacheKey);
|
||||
stateProvider.setState(
|
||||
State.CacheMatchedKey,
|
||||
cacheKey,
|
||||
Outputs.MatchedKey
|
||||
);
|
||||
|
||||
const isExactKeyMatch = utils.isExactKeyMatch(
|
||||
core.getInput(Inputs.Key, { required: true }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue