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