From 4cb48aab1d8231d4fb162beaf53283601247a8c8 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Fri, 3 Nov 2023 14:04:37 +0100 Subject: [PATCH] Fix axisID for non-matrix (#2717) Just one more from #2695 --- pipeline/stepBuilder.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipeline/stepBuilder.go b/pipeline/stepBuilder.go index 332b47a99..57232f955 100644 --- a/pipeline/stepBuilder.go +++ b/pipeline/stepBuilder.go @@ -84,7 +84,9 @@ func (b *StepBuilder) Build() (items []*Item, errorsAndWarnings error) { State: model.StatusPending, Environ: axis, Name: SanitizePath(y.Name), - AxisID: i + 1, + } + if len(axes) > 1 { + workflow.AxisID = i + 1 } item, err := b.genItemForWorkflow(workflow, axis, string(y.Data)) if err != nil && pipeline_errors.HasBlockingErrors(err) {