No description
Find a file
2026-02-03 11:27:10 +01:00
action.yml Wrap rsync into eval call 2026-02-03 11:27:10 +01:00
LICENSE Initial commit 2026-01-16 07:34:07 +01:00
readme.md Initial commit 2026-01-16 07:34:07 +01:00

rsync

This action provides an simple way of using rsync.

License

This project is licensed under AGPL-3.0-or-later. For more information, see the LICENSE file, or alternatively online under https://www.gnu.org/licenses/.

Usage

- uses: actions/rsync
  with:
    source: ./build/repo
    target: ${{ secrets.RSYNC_TARGET }}
    timeout: 3600
    compression: 'true'
    flags: -av --stats --numeric-ids
    ssh_port: ${{ secrets.SSH_PORT }} # Defaults to 22
    ssh_known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
    ssh_strict_hostkey_checking: 'true'
    ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

This action essentially wraps the rsync binary, so make sure it is on $PATH prior to running this action. It stores both the private key and known hosts inside temporary files make with mktemp, which get removed after the step finishes.