prod-workflow:
when:
or:
# This... is unacceptable. Can't figure out how to substring the parameter,
# or use an alternative to 'equal' that allows for partial or regex matching.
- equal: [prod-aa, << pipeline.parameters.target-env >>]
- equal: [prod-bb, << pipeline.parameters.target-env >>]
- equal: [prod-cc, << pipeline.parameters.target-env >>]
- equal: [prod-dd, << pipeline.parameters.target-env >>]
I would prefer to match on prod-*
, to allow for the possibility of adding additional environments in future (e.g.: prod-ee
, prod-ff
, etc.). Suggestions?