Add getRequiredInput to ActionsEnv

This commit is contained in:
Michael B. Gale
2026-07-24 17:40:26 +01:00
parent 766928d055
commit e9831f72a2
3 changed files with 6 additions and 2 deletions

View File

@@ -187,6 +187,9 @@ export function getTestEnv(testEnv: NodeJS.ProcessEnv = {}): Env {
*/
export function getTestActionsEnv(): ActionsEnv {
return {
getRequiredInput: (name) => {
throw new Error(`Input required and not supplied: ${name}`);
},
getOptionalInput: () => undefined,
};
}