Allow automation rules to run only when a ticket is resolved by an agent or requester. Or allow to run based on Resolved by or Resolution code fields.