Support step number

This commit is contained in:
Jason Song
2022-09-22 21:56:43 +08:00
committed by Jason Song
parent 7fb84a54a8
commit 64cae197a4
4 changed files with 9 additions and 5 deletions

View File

@@ -120,6 +120,7 @@ func (rc *RunContext) compositeExecutor(action *model.Action) *compositeSteps {
if step.ID == "" {
step.ID = fmt.Sprintf("%d", i)
}
step.Number = i
// create a copy of the step, since this composite action could
// run multiple times and we might modify the instance