mirror of
https://kkgithub.com/actions/cache.git
synced 2026-01-09 00:06:36 +08:00
Fixed test cases
This commit is contained in:
@ -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