I’m creating a workflow that deploys changes to the infrastructure, the infra has 2 envs on the same repo (test-prod), so it init-plan both envs and applies the changes. What I want to achieve is that if in some of the envs there is no plan it can just skip the approval/apply steps,
init_plan_test-prod --> (when, condition: env plan produces changes) --> env approval_job --> env deploy_job L(when, condition: plan no changes) --> exit
Someone know a way of doing this? I’ve used conditionals in the past, but not sure how to use them to read plan changes and apply accordingly.