Skip to content

Remote Sync with Manual Trigger #2

Remote Sync with Manual Trigger

Remote Sync with Manual Trigger #2

name: Remote Sync with Manual Trigger
on: [workflow_dispatch]
jobs:
Sync:
name: Chechout
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: rsync
uses: burnett01/[email protected]
with:
switches: -avzr --delete
legacy_allow_rsa_hostkeys: "true"
path: /rsync-test-path/
remote_path: ~/rsync/
remote_host: ${{ secrets.REMOTE_HOST }}
remote_user: ${{ secrets.REMOTE_USER }}
remote_key: ${{ secrets.REMOTE_KEY }}