mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-21 00:03:58 +08:00
React to feeback and change to use 0.2.0 cache package
This commit is contained in:
parent
249a22026d
commit
bcc23b930f
10 changed files with 5098 additions and 5604 deletions
|
@ -17,7 +17,7 @@ async function run(): Promise<void> {
|
|||
}
|
||||
|
||||
const primaryKey = core.getInput(Inputs.Key, { required: true });
|
||||
core.saveState(State.CacheKey, primaryKey);
|
||||
core.saveState(State.CachePrimaryKey, primaryKey);
|
||||
|
||||
const restoreKeys = core
|
||||
.getInput(Inputs.RestoreKeys)
|
||||
|
@ -45,7 +45,7 @@ async function run(): Promise<void> {
|
|||
return;
|
||||
}
|
||||
|
||||
// Store the cache result
|
||||
// Store the matched cache key
|
||||
utils.setCacheState(cacheKey);
|
||||
|
||||
const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue