默认情况下,我定义的 CircleCI 参数是这样的:
branchTag:
type: string
default: dev
testTag:
type: string
default: unit
我希望特定工作流在以下条件下运行:当管道触发器不包含 branchTag 并且当 testTag 不等于 unit:
run-flow:
when:
and:
- not: << pipeline.parameters.branchTag >>
- not equal: [unit, << pipeline.parameters.testTag >>]
但是,使用当前语法,这仍然会触发运行流工作流。文档也不清楚。 https://support.circleci.com/hc/en-us/articles/360043638052-Conditional-steps-in-jobs-and-conditional-workflows