Skip to content

Remote Sync with Manual Trigger #3

Remote Sync with Manual Trigger

Remote Sync with Manual Trigger #3

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: Test connection
run: ping -c 5 ${{ secrets.REMOTE_HOST }}
- 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 }}