How to approve running terraform apply only if there are changes to apply

I have a workflow that includes three job:

  1. run terraform plan and save it
  2. manual approval to ask the user if its ok to apply the plan
  3. run terraform apply on the saved plan

Most of the time there are no changes but manual approval is still required.
I’d like to skip manual approval if there are no change.
The newly conditional logic feature doesn’t seem to support making decisions based on the output of a job.

Suggestions?

1 Like