Skip to content

x-ddr/sync-repo-to-gitee

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sync Repository Action

生成新的SSH密钥

SSH_KEY: 创建一个 SSH key ,将公钥id_rsa.pub保存到Github SSH keysGitee SSH公钥,将私钥id_rsa在 GitHub 项目的 Settings -> Secrets 路径下配置好 GITEE_KEY

Example workflow

name: Sync Repository Action
on:
  push:
  schedule:
    # 每天北京时间0点同步
    - cron:  '0 16 * * *'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Sync to Gitee
      uses: x-dr/sync-repo-to-gitee@master
      env:
          # 在 Settings->Secrets 配置 GITEE_KEY
          SSH_KEY: ${{ secrets.GITEE_KEY }}
      with:
          # 注意替换为你的 GitHub 源仓库地址
          github-repo: "git@github.com:x-dr/sync-repo-to-gitee.git"
          # 注意替换为你的 Gitee 目标仓库地址
          gitee-repo: "git@gitee.com:goindex/sync-repo-to-gitee.git"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published