-
I am currently working with Argo Workflows and trying to utilize regular expressions in the when conditions of my workflow tasks. Specifically, I am attempting to match a branch name that starts with "release" using the following expression:
However, I am encountering errors related to the syntax, such as I would like to clarify the correct way to use regular expressions in the when conditions. Is there a specific syntax or method that I should follow to achieve this functionality? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The operator of regex in expr-lang is when: "{{=jsonpath(workflow.parameters.metaData, '$.repoInfo.branch') matches '^release.*'}}" |
Beta Was this translation helpful? Give feedback.
The operator of regex in expr-lang is
matches
, please try as below: