(ctx context.Context, addOpts AddOptions, coolDown time.Duration)
| 205 | } |
| 206 | |
| 207 | func 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 | |
| 227 | func runDeployAddPass(ctx context.Context, resolvedWorkflows []string, addOpts AddOptions) error { |
| 228 | workflowsToAdd, skippedWorkflows, err := excludeExistingSourcedWorkflows(resolvedWorkflows, addOpts) |
no test coverage detected