This action can be used to sync directories from/to [nightlies.apache.org] with
rsync. It requires the correct secrets to be in place as described
below.
Currently this action is intended to sync the contents of local_path to
remote_path (or vice versa), so a slash will be appended to the source path.
Uploading single files or dirs is not possible directly but only by wrapping
them in an additional directory.
uploadSet totrueto upload fromlocal_pathtoremote_pathswitchesSee rsync --help for available switches.local_pathThe relative local path within $GITHUB_WORKSPACEremote_pathThe remote path incl. sub dirs e.g. {{secrets.path}}/arrow/r.remote_hostThe remote host.remote_portThe remote port.remote_userThe remote user.remote_keyThe remote ssh key.remote_host_keyThe host key fot StrictHostKeyChecking.
The secrets have to be set by INFRA, except secrets.NIGHTLIES_RSYNC_HOST_KEY
which should contain the result of ssh-keyscan -H nightlies.apache.org 2> /dev/null. This example requires apache/arrow to be checked out in arrow.
- name: Sync from Remote
uses: ./arrow/.github/actions/sync-nightlies
with:
switches: -avzh --update --delete --progress
local_path: repo
remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/arrow/r
remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
remote_host_key: ${{ secrets.NIGHTLIES_RSYNC_HOST_KEY }}
- name: Sync to Remote
uses: ./arrow/.github/actions/sync-nightlies
with:
upload: true
switches: -avzh --update --delete --progress
local_path: repo
remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/arrow/r
remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
remote_host_key: ${{ secrets.NIGHTLIES_RSYNC_HOST_KEY }}