It’s currently not possible to add conditions to a Deep Clone post function. However, you can achieve the same effect by attaching a condition to the workflow transition that contains the Deep Clone post function and have another transition without the Deep Clone post function.
Example:
Workflow Transition 1:
Workflow Transition 2:
You can set up your workflow to show either one or the other. Unfortunately the transitions cannot have the same name.