mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-29 14:59:55 +02:00
Renamed variables and added tests
This commit is contained in:
parent
d91f5bd2fd
commit
3d4af52c52
16 changed files with 810 additions and 988 deletions
|
@ -42,8 +42,7 @@ async function saveImpl(stateProvider: IStateProvider): Promise<void> {
|
|||
|
||||
// If matched restore key is same as primary key, then do not save cache
|
||||
// NO-OP in case of SaveOnly action
|
||||
const restoredKey =
|
||||
stateProvider.getCacheState() || core.getInput(Inputs.RestoredKey);
|
||||
const restoredKey = stateProvider.getCacheState();
|
||||
|
||||
if (utils.isExactKeyMatch(primaryKey, restoredKey)) {
|
||||
core.info(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue