Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
git-branch

GitHub Action

Repository Sync Hub

v1.1.0

Repository Sync Hub

git-branch

Repository Sync Hub

Sync current repository to other hub

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Repository Sync Hub

uses: ttionya/[email protected]

Learn more about this action in ttionya/Repository-Sync-Hub

Choose a version

Repository Sync Hub

A GitHub Actions for sync current repository to other hub.

Features

  • Sync branches and tags to other repository (GitHub, GitLab, Gitee, etc.)
  • Automatic delete branches and tags that is deleted
  • Can triggered on PUSH and DELETE event
  • Can triggered on a timer (SCHEDULE)

Usage

Be sure to run the actions/checkout in a step before this action.

# File .github/workflows/sync.yml

steps:
  - uses: actions/checkout@v2
    with:
      fetch-depth: 0
  - uses: ttionya/Repository-Sync-Hub@v1
    with:
      # Sync to target repository full clone URL (SSH Only)
      target_repository: '[email protected]:ttionya/Repository-Sync-Hub-Test.git'
      # SSH key used to authenticate with git operations (optional)
      ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

Please see sample workflows for more usages.

Thanks

Inspired by the following actions which may be more suitable for your workflow.

License

MIT