Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/gh-workflow/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,13 @@ pub struct WorkflowCall {
pub secrets: HashMap<String, WorkflowCallSecret>,
}

impl WorkflowCall {
pub fn add_input(mut self, name: impl Into<String>, 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)]
Expand Down