mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 00:33:57 +08:00
Fixed test cases
This commit is contained in:
parent
5b7eeecaeb
commit
667e98af5a
7 changed files with 47 additions and 13 deletions
7
dist/restore-only/index.js
vendored
7
dist/restore-only/index.js
vendored
|
@ -9413,9 +9413,14 @@ class NullStateProvider extends StateProviderBase {
|
|||
[constants_1.State.CachePrimaryKey, constants_1.Outputs.CachePrimaryKey]
|
||||
]);
|
||||
this.setState = (key, value) => {
|
||||
core.setOutput(this.stateToOutputMap.get(key), value);
|
||||
if (this.stateToOutputMap.has(key)) {
|
||||
core.setOutput(this.stateToOutputMap.get(key), value);
|
||||
}
|
||||
};
|
||||
this.getState = (key) => {
|
||||
if (!this.stateToInputMap.has(key)) {
|
||||
return "";
|
||||
}
|
||||
return core.getInput(this.stateToInputMap.get(key));
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue