issues icon indicating copy to clipboard operation
issues copied to clipboard

Workflows

Open adamdriscoll opened this issue 2 years ago • 4 comments

Summary of the new feature / enhancement

Workflows would be a good way to chain together multiple scripts. Some features of workflows:

  • Schedule
  • Run manually
  • Target with triggers
  • Specify environments and credentials
  • Parameters
  • Retry steps
  • Pause\Resume steps
  • ErrorAction determines if the workflow should be terminated
New-PSUWorkflow -Steps {
    New-PSUWorkflowStep -Script 'Script1.ps1' -SomeParameter Cool -ErrorAction Continue
    New-PSUWorkflowStep -Script 'Script2.ps1' -SomeParameter Cool -ErrorAction Continue
    New-PSUWorkflowStep -Script 'Script3.ps1' -SomeParameter Cool -ErrorAction Stop
} -SomeWorkflowParameter 'Nice' -Environment pwsh

Proposed technical implementation details (optional)

No response

adamdriscoll avatar Jul 19 '22 22:07 adamdriscoll