Skip to content
This repository was archived by the owner on Jun 23, 2026. It is now read-only.

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Sync to Repository

A GitHub Action to sync a directory to another repository using SSH deploy keys.

Usage

- uses: fabraix/sync@v1.0.0with:
source-directory: ./distdestination-repository: your-org/target-repotarget-branch: masteruser-email: bot@yourcompany.comuser-name: Sync Botenv:
SSH_DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}

Inputs

InputRequiredDefaultDescription
source-directory-Source directory to sync
destination-repository-Destination repository (e.g., org/repo)
target-branchmasterTarget branch in destination
target-directory''Target directory (empty for root)
commit-messageSync from ORIGIN_COMMITCommit message
user-email-Git user email
user-name-Git user name

Secrets

SecretRequiredDescription
SSH_DEPLOY_KEYSSH private key with write access to destination repo

Setup

  1. Generate an SSH key pair:

    ssh-keygen -t ed25519 -C "sync-bot" -f sync_key -N ""
  2. Add sync_key.pub as a Deploy Key (with write access) on the destination repository

  3. Add sync_key (private key) as a Secret named DEPLOY_KEY on the source repository

License

MIT

About

GitHub Action to sync a directory to another repository via SSH 🔄

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages