Skip to content

Regular Expression Matching in Workflow Conditions #13677

Closed Locked Answered by jswxstw
mio4kon asked this question in Q&A
Discussion options

You must be logged in to vote

The operator of regex in expr-lang is matches, please try as below:

when: "{{=jsonpath(workflow.parameters.metaData, '$.repoInfo.branch') matches '^release.*'}}"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mio4kon
Comment options

Answer selected by mio4kon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/templating Templating with `{{...}}` type/support User support issue - likely not a bug
2 participants