easingthemes / ssh-deploy

GitHub Action for deploying code via rsync over ssh. (with NodeJS)
MIT License
1.17k stars 144 forks source link

Feature: Delete Script After Execution #184

Closed Armadillidiid closed 1 month ago

Armadillidiid commented 6 months ago

By default, when the TARGET_SOURCE is set to the current directory, all files are copied to the TARGET_DIR. This includes SCRIPT_BEFORE cmd if one was created. Over time, this process results in multiple local_ssh_script-before-* files cluttering up space on the host system.

This pull request addresses this issue by automatically deleting the remoteCmd script after execution.

easingthemes commented 1 month ago

Thanks