-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.65 KB
/
SyncToGitee.yml
File metadata and controls
45 lines (41 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: SyncToGitee
on:
push:
branches:
- main
paths:
- '.github/workflows/SyncToGitee.yml'
schedule:
- cron: '0 14 * * *' # 每天22点运行 14 + 8
jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout source codes
uses: actions/checkout@v3
- name: Get repository list exclude private and fork
id: repo
uses: yi-Xu-0100/repo-list-generator@v1.1.1
- name: Echo Output
run: |
echo repo: ${{steps.repo.outputs.repo}}
echo repoList: ${{steps.repo.outputs.repoList}}
echo repoList_ALL: ${{steps.repo.outputs.repoList_ALL}}
echo repoList_PRIVATE: ${{steps.repo.outputs.repoList_PRIVATE}}
echo repoList_FORK: ${{steps.repo.outputs.repoList_FORK}}
echo privateList: ${{steps.repo.outputs.privateList}}
echo forkList: ${{steps.repo.outputs.forkList}}
echo emptyList: ${{steps.repo.outputs.emptyList}}
echo archivedList: ${{steps.repo.outputs.emptyList}}
- name: Mirror the Github organization repos to Gitee.
uses: Yikun/hub-mirror-action@master
with:
src: 'github/RapidAI'
dst: 'gitee/RapidAI'
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
force_update: true
account_type: org
debug: true
static_list: ${{ steps.repo.outputs.repoList_FORK }} # 仅同步非private的仓库,包括fork和自建的,文档可参考https://github.com/yi-Xu-0100/repo-list-generator
black_list: ".github,rapidai.github.io,RapidOCR,llama-dl" # RapidOCR和YOLO自有同步