Skip to content

Dotfiles being copied all the time #28

Description

@tiliv

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.
[ ... ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions