MCPcopy Create free account
hub / github.com/github/gh-aw / runDeployUpdatePass

Function runDeployUpdatePass

pkg/cli/deploy_command.go:207–225  ·  view source on GitHub ↗
(ctx context.Context, addOpts AddOptions, coolDown time.Duration)

Source from the content-addressed store, hash-verified

205}
206
207func runDeployUpdatePass(ctx context.Context, addOpts AddOptions, coolDown time.Duration) error {
208 if err := PreflightCheckForCreatePR(addOpts.Verbose); err != nil {
209 return err
210 }
211
212 updateOpts := UpdateWorkflowsOptions{
213 Verbose: addOpts.Verbose,
214 EngineOverride: addOpts.EngineOverride,
215 WorkflowsDir: addOpts.WorkflowDir,
216 NoStopAfter: addOpts.NoStopAfter,
217 StopAfter: addOpts.StopAfter,
218 DisableSecurityScanner: addOpts.DisableSecurityScanner,
219 CoolDown: coolDown,
220 }
221 if err := RunUpdateWorkflows(ctx, updateOpts); err != nil {
222 return fmt.Errorf("failed to update existing workflows: %w", err)
223 }
224 return nil
225}
226
227func runDeployAddPass(ctx context.Context, resolvedWorkflows []string, addOpts AddOptions) error {
228 workflowsToAdd, skippedWorkflows, err := excludeExistingSourcedWorkflows(resolvedWorkflows, addOpts)

Callers 1

runDeployFunction · 0.85

Calls 3

RunUpdateWorkflowsFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected