No temporary directory is left behind

Temp directory created when generating template file is removed when
the action completes.