I’m trying to create separate jobs for branch development and merges to master. I’ve arrived at the following but now see that both workflows are executed, when I had expected only one could ever be triggered. What am I misunderstanding?
workflows:
build_branch:
when:
condition:
not:
- equal: [ master, << pipeline.git.branch >> ]
jobs:
- side_chain_build
- chrome_ex_build
- web_upload_assets:
requires:
- side_chain_build
- elm_runtime_build
build_release:
when:
condition:
equal: [ master, << pipeline.git.branch >> ]
jobs:
- side_chain_build
- elm_runtime_build
- chrome_ex_build
- web_upload_assets:
requires:
- side_chain_build
- elm_runtime_build
- chrome_ex_build
- web_release:
requires:
- side_chain_tests
- web_upload_assets
what is the difference between when
and condition