No description
| action.yml | ||
| LICENSE | ||
| readme.md | ||
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.