Workflows allow you to define sequences of steps to automate tasks. Here’s an example of defining a workflow:
workflows:
- name: test-workflow
description: test workflow for cpm
inputs:
- taskId
steps:
- id: get_task
run: cpm task get $
- id: repo_checkout
run: cpm repo checkout --branch $
outputs:
branchName: $
In this example:
To execute this workflow
cpm exec test-workflow --taskId <actual-task-id>