workflows:
version: 2
build_accept_deploy:
jobs:
- build
- acceptance_test_1:
requires:
- build
- acceptance_test_2:
requires:
- build
- acceptance_test_3:
requires:
- build
- acceptance_test_4:
requires:
- acceptance_test_1
- acceptance_test_2
when: on_fail
这种情况是,如果前面三个作业都运行正常,我就不想运行acceptance_test_4
。但是,如果只有acceptance_test_4
失败并且acceptance_test_3
和acceptance_test_1
通过,我想运行acceptance_test_2
。
我的解决方案对吗?