-
The matrix strategy is a great way to run different commands with the same starting steps, to DRY up a workflow. As far as I can tell though there’s no way to effectively label each run, unless i’m missing something? Take this example:
This works fine, but each job in the matrix is listed as the command. Yaml does support key value pairs but I can’t see how to use a key as the job label. Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
You could do something like:
legs is arbitrary could be any key name you like as is name. But hopefully you get the idea and it helps you. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for that but in the UI the Job label is still displayed like this: It doesn’t look like the legs.name property is used anywhere. |
Beta Was this translation helpful? Give feedback.
-
Please check your workflow yml, is there any typos? I tested chrispat’s yml, the job name works fine (please ignore the failure in PHP step). |
Beta Was this translation helpful? Give feedback.
-
It did work after all. I had 2 versions of the same workflow and I was checking the wrong one. Oh dear!! |
Beta Was this translation helpful? Give feedback.
You could do something like: