Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Conditions should allow operators #59

Open
raine opened this issue Oct 4, 2019 · 1 comment
Open

Conditions should allow operators #59

raine opened this issue Oct 4, 2019 · 1 comment

Comments

@raine
Copy link

raine commented Oct 4, 2019

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
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants