CircleCI-Archived / api-preview-docs

In-progress docs about the pre-release preview of CircleCI API v2
72 stars 26 forks source link

Conditions should allow operators #59

Open raine opened 5 years ago

raine commented 5 years ago

I'm trying to use the conditional workflows addition proposed here in a real project but I'm finding that it is really inflexible due to only allowing single value truthiness evaluation.

I would really like to be able to do equality comparisons and use logical operators.

It looks like you basically have to introduce lots of extra pipeline parameters because you can't write expressions that would capture the same condition more simply.

when: << pipeline.parameters.build_project >> == "subproject" || << pipeline.parameters.build_always >>

Something like that.

ndintenfass commented 5 years ago

We agree this would be Good and are looking at ways to bring more expressiveness to the conditionality around workflows (and other areas).