I’m happy to announce the recent addition of advanced
config-compile-time logic statements to config version 2.1. This is
part of our initiative to give users greater control over the work to
perform.
With logic statements you can combine literal values, pipeline values,
and pipeline parameters in various ways to produce arguments for when
stanzas in workflows and when steps.
I’d like to be able to only run codecov/upload if a coverage output directory is present, is there any way to do this?
It seems like it’s not possible to use an arbitrary shell command to determine a condition. Product managers may have thought we can already do conditional stuff in bash scripting but…when we need to run a command provided by another orb, we can’t do that because we can’t invoke the command from bash.
So, assuming I didn’t overlook such a feature in the docs, I hope you will add an option to use a shell command exit code as a condition
@sulami it would be nice to have a conditional expression language like GitHub Actions do like << pipeline.parameters.run-deploy >> || << pipeline.git.branch >> == 'master'