Skip to content
refresh-cw

GitHub Action

Auto Sync Repos

v0.2.0 Latest version

Auto Sync Repos

refresh-cw

Auto Sync Repos

Sync two repos by creating pull request automatically

Installation

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

              

- name: Auto Sync Repos

uses: vesoft-inc/auto-sync-repos@v0.2.0

Learn more about this action in vesoft-inc/auto-sync-repos

Choose a version

Auto Sync Repos Action

Sync all commits from one public repo to another private repo by creating pull request automatically.

Inputs

from_repo

Required The repository need to sync.

repo_token

Required The repository token to access the codebase.

dingtalk_access_token

Optional The access token of dingtalk. Default "".

dingtalk_secret

Optional The secret of dingtalk. Default "".

Usage

In private repository workflow:

name: My Workflow
on:
  schedule:
    - cron: '0 8 * * *'
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: vesoft-inc/auto-sync-repos@master
      with:
        from_repo: vesoft-inc/nebula
        repo_token: ${{ secrets.GH_PAT }}
        dingtalk_access_token: ${{ secrets.DING_ACCESS_TOKEN }}
        dingtalk_secret: ${{ secrets.DING_SECRET }}