Dotfiles being copied all the time
tiliv opened this issue · comments
Hi!
I've been using this action to copy repository code to a remote server, and I noticed that whether I set dotfiles: false
or leave it out (because default is false
), the scp is copying folders and files that start with .
. My workaround is to remove the files in question before using the scp action.
Here is the step I'm using to perform the transfer:
- name: Copy sources to Instance
uses: garygrossgarten/github-action-scp@v0.7.3
with:
host: ${{ steps.set-ssh-info.outputs.host }}
port: ${{ steps.set-ssh-info.outputs.port }}
username: ${{ secrets.SSH_USERNAME }}
privateKey: ${{ secrets.SSH_PRIVATE_KEY }}
local: my-dir
remote: my-dir
Without putting the whole execution log, the very first thing it does is transfer a dotfile:
Starting scp Action: my-dir to my-dir
✔ successfully copied my-dir/.gitignore.
[ ... ]
Thanks for opening the issue. I'll take a look at it as soon as I can.