27 lines
1.2 KiB
YAML
27 lines
1.2 KiB
YAML
# 通过 Github action, 在仓库的每一次 commit 后自动同步到 Gitee 上
|
||
# 临时修改为手动触发,等待同步完成后再修改为自动触发
|
||
name: Mirror the Github organization repos to Gitee
|
||
on: workflow_dispatch
|
||
|
||
jobs:
|
||
repo-sync:
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- uses: actions/checkout@main
|
||
with:
|
||
persist-credentials: false
|
||
- name: Mirror the Github organization repos to Gitee.
|
||
uses: Yikun/hub-mirror-action@master
|
||
with:
|
||
# 必选,需要同步的 Github 这里记住选择的是仓库 或者账号 而不是具体的项目
|
||
src: github/CodePhiliaX
|
||
# 必选,需要同步到的 Gitee 这里记住选择的是仓库 或者账号 而不是具体的项目
|
||
dst: gitee/fastexcel
|
||
# 必选,Gitee公钥对应的私钥,https://gitee.com/profile/sshkeys
|
||
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
|
||
# 必选,Gitee对应的用于创建仓库的token,https://gitee.com/profile/personal_access_tokens
|
||
dst_token: ${{ secrets.GITEE_TOKEN }}
|
||
# 如果是组织,指定组织即可,默认为用户 user
|
||
account_type: org
|
||
# 需要同步的仓库里面的项目
|
||
static_list: "fastexcel" |