Update modules/structs/workflow.go

Add parameter return_run_info with a default value of false to be used to elicit a return value of DispathWorkflowRun from the /repos/{owner}/{repo}/actions/workflows/{workflowname}/dispatches REST endpoint.
This commit is contained in:
markturney 2025-03-12 11:37:02 +00:00
parent fea389f45b
commit 26c139fa86

View file

@ -12,6 +12,9 @@ type DispatchWorkflowOption struct {
Ref string `json:"ref"`
// Input keys and values configured in the workflow file.
Inputs map[string]string `json:"inputs"`
// Flag to return the run info
// default: false
ReturnRunInfo bool `json:"return_run_info" default:"false"`
}
// DispatchWorkflowRun represents a workflow run