lib/eco/cli/config/default/workflow.rb in eco-helpers-2.0.25 vs lib/eco/cli/config/default/workflow.rb in eco-helpers-2.0.26

- old
+ new

@@ -98,13 +98,16 @@ if io.session.post_launch.empty? wf_post.skip! else get_people = io.options.dig(:people, :get) partial_update = get_people && get_people.dig(:type) == :partial - if !io.options[:dry_run] && partial_update - # get target people afresh - people = io.session.micro.people_refresh(people: io.people, include_created: true) - io = io.base.new(people: people) + run_it = !io.options[:dry_run] || io.options.dig(:post_launch, :run) + if run_it && partial_update + unless io.options[:dry_run] + # get target people afresh + people = io.session.micro.people_refresh(people: io.people, include_created: true) + io = io.base.new(people: people) + end else wf_post.skip! msg = "Although there are post_launch cases, they will NOT be RUN" if io.options[:dry_run] msg+= ", because we are in dry-run (simulate)."