How to switch conditionally a task in a step? #26976
-
I have created a workflow that contains this 2 jobs:
… And I would like to merge this 2 jobs in a unique job that switch the run element when iterated ${{ matrix.java }} variable contains the ‘-ea’ suffix. in particular I would like to create something like this:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @burningwave , In if expression, please directly use matrix.java without ‘${{}}’. Code sample as below:
Thanks. |
Beta Was this translation helpful? Give feedback.
-
Thans a lot: I solved this is the final job:
… and do you know how to replace a String for writing something like this in the last row?:
|
Beta Was this translation helpful? Give feedback.
Hi @burningwave ,
In if expression, please directly use matrix.java without ‘${{}}’. Code sample as below: