mirror of
https://github.com/actions/cache.git
synced 2026-10-10 13:32:55 +00:00
Fixed test cases
This commit is contained in:
1 parent
5b7eeecaeb
commit
667e98af5a
7 files changed
+47
-13
No files matched your search
@@ -43,10 +43,15 @@ export class NullStateProvider extends StateProviderBase {
|
||||
]);
|
||||
|
||||
setState = (key: string, value: string) => {
|
||||
core.setOutput(this.stateToOutputMap.get(key) as string, value);
|
||||
if (this.stateToOutputMap.has(key)) {
|
||||
core.setOutput(this.stateToOutputMap.get(key) as string, value);
|
||||
}
|
||||
};
|
||||
|
||||
getState = (key: string) => {
|
||||
if (!this.stateToInputMap.has(key)) {
|
||||
return "";
|
||||
}
|
||||
return core.getInput(this.stateToInputMap.get(key) as string);
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user