Update github_to_gitee.yml

pull/248/head
Fighter 2020-12-04 18:07:00 +08:00 committed by GitHub
parent 24307db140
commit 2c43d5d49f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 19 deletions

View File

@ -1,22 +1,14 @@
name: github repos to gitee job
on:
# 如果需要PR触发把push前的#去掉
# push:
schedule:
# 每天北京时间1点跑
- cron: '0 1 * * *'
name: Sync-GitHub-to-Gitee
on: push
jobs:
build:
sync:
runs-on: ubuntu-latest
steps:
- name: Mirror the Github organization repos to Gitee.
uses: Yikun/gitee-mirror-action@v0.01
with:
src: github/openspug
dst: gitee/openspug
# Gitee对应的秘钥
private_key: ${{ secrets.mac_pro_videojj }}
# 需要同步的Github组织名
github_org: openspug
# 需要同步到的Gitee的组织名目的
gitee_org: openspug
- uses: openspug/spug@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_PRIVATE_KEY }}
with:
source-repo: "git@github.com:openspug/spug.git"
destination-repo: "git@gitee.com:openspug/spug.git"
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}