diff --git a/crates/gh-workflow/src/event.rs b/crates/gh-workflow/src/event.rs index 45b42cd..4de46b9 100644 --- a/crates/gh-workflow/src/event.rs +++ b/crates/gh-workflow/src/event.rs @@ -808,6 +808,13 @@ pub struct WorkflowCall { pub secrets: HashMap, } +impl WorkflowCall { + pub fn add_input(mut self, name: impl Into, input: WorkflowCallInput) -> Self { + self.inputs.insert(name.into(), input); + self + } +} + /// Configuration for workflow call input #[derive(Debug, Clone, Default, Deserialize, Serialize, PartialEq, Setters, Eq)] #[setters(strip_option, into)]