By default, setup-terraform action is downloading terraform file to temporary directory. It should be cleaned in the self-hosted runners because it gets cluttered with unused file with time.
Also, I can't set condition into action.yaml to runs.post-if directive due to issue
Changes Made
Added support post-job step for cleaning temporary directory for terraform bin file.
Add post-job step for cleaning temp dir
Description
By default, setup-terraform action is downloading terraform file to temporary directory. It should be cleaned in the self-hosted runners because it gets cluttered with unused file with time. Also, I can't set condition into action.yaml to
runs.post-if
directive due to issueChanges Made
How to Use
cleanup_workspace
.Example workflow configuration: