Skip to content

If condition isn't matching release branches #27078

Answered by mfarag1
mfarag1 asked this question in Actions
Discussion options

You must be logged in to vote

There are other jobs I’d include in this workflow. I want to limit the job based on branch names. But I discovered a solution to this issue using contains function. Everything would be the same as I have in the example above, but checking for release would look like this:
contains(github.base_ref, ‘release’)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants