I'm planning to implement dynamic configuration using orbs: continuation: circleci/continuation@0.1.2. My config.yml file has different jobs and each job runs on specific condition. There are 2 jobs that run on same day as per the build scheduled.
The problem here is that if
config.yml
file has line setup: true, then I cannot define any other workflow. I need more than 1 workflow because of the multiple jobs that I need to run conditionally.
Steps to Reproduce:
  1. Create multiple child .yml files say screenshot_test.yml, production_test.yml, stage_test.yml, dev_test.yml
  2. Create parent config.yml file having setup: true
  3. Now, I want to run production_test.yml and stage_test.yml only on master and stage branch respectively.
  4. I want to run screenshot_test.yml and dev_test.yml on any branch other than master and stage branch
  5. I also want to schedule production_test.yml and stage_test.yml to run on a weekly basis.
Problem: I can only have one workflow in parent config.yml file as it has setup: true.
Expected: It should allow to have more than one workflow in parent config.yml file so that I can run
  1. production_test.yml
    and
    stage_test.yml
    on every commit to master and stage branch.
  2. production_test.yml
    and
    stage_test.yml
    as per the build scheduled i.e. weekly