MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Run

Method Run

app/cli/pkg/action/workflow_update.go:37–53  ·  view source on GitHub ↗
(ctx context.Context, name, project string, opts *WorkflowUpdateOpts)

Source from the content-addressed store, hash-verified

35}
36
37func (action *WorkflowUpdate) Run(ctx context.Context, name, project string, opts *WorkflowUpdateOpts) (*WorkflowItem, error) {
38 client := pb.NewWorkflowServiceClient(action.cfg.CPConnection)
39 resp, err := client.Update(ctx, &pb.WorkflowServiceUpdateRequest{
40 Name: name,
41 ProjectName: project,
42 Description: opts.Description,
43 Team: opts.Team,
44 Public: opts.Public,
45 ContractName: opts.ContractName,
46 })
47
48 if err != nil {
49 return nil, err
50 }
51
52 return pbWorkflowItemToAction(resp.Result), nil
53}

Callers

nothing calls this directly

Calls 2

UpdateMethod · 0.95
pbWorkflowItemToActionFunction · 0.85

Tested by

no test coverage detected