Using a matrix defined input for a custom action #25899
-
I want to use a custom action and provide a different value to an action input parameter based on the matrix element - for example, a platform specific URL. Is there any way I can do that with the current matrix syntax? For example, the following will use the Windows-only parameter for a Linux build and vice-versa:
I know I can use the exclude rules for the matrix, but it really does seem cumbersome for more complex scenarios. Additionally, there might be multiple parameters that have platform specific values I would like to set, which means the exclusion solution will not work here. Any pointers to how this could be done easier? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It doesn’t seem like you’d want a matrix here. I think I would approach this by having a script that sets the appropriate values based on the operating system in the matrix, then uses those output values as inputs into the other actions. For example:
|
Beta Was this translation helpful? Give feedback.
-
Shouldn’t |
Beta Was this translation helpful? Give feedback.
-
You sould also be able to do something like this
|
Beta Was this translation helpful? Give feedback.
-
This is exactly what I was looking for, thanks a lot! |
Beta Was this translation helpful? Give feedback.
You sould also be able to do something like this