-
Notifications
You must be signed in to change notification settings - Fork 44
49 lines (44 loc) · 1.86 KB
/
gitee-repos-mirror.yml
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
46
47
48
49
name: Gitee repos mirror periodic job
on:
pull_request:
paths:
- '.github/workflows/gitee-repos-mirror.yml'
- '!.github/workflows/spark-sync.yaml'
# Runs at every pull requests submitted in master branch
branches: [ master ]
schedule:
# Runs at 01:00 UTC (9:00 AM Beijing) every day
- cron: '0 1 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Mirror the Gitee organization repos to Github.
uses: Yikun/hub-mirror-action@v1.4
with:
src: gitee/kunpengcompute
dst: github/kunpengcompute
dst_key: ${{ secrets.HUB_PRIVATE_KEY }}
dst_token: ${{ secrets.HUB_TOKEN }}
account_type: org
timeout: 600
debug: true
force_update: true
static_list: "boostkit-bigdata,Spark-ml-algo-lib,Spark-graph-algo-lib,global-cache-adaptor,vmi,hmpi,Kbox,KAEdriver,KAE,KAEzip,android-qemu,goldfish-opengl,mesa,llvm,libdrm,media,xucg,hucx,ceph,bcache,global-cache-adaptor,kps,hyperscan,HW265,zstd"
- name: Mirror the Github organization repos to Gitee.
if: always()
uses: Yikun/hub-mirror-action@v1.4
with:
src: github/kunpengcompute
dst: gitee/kunpengcompute
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
account_type: org
timeout: 600
debug: true
force_update: true
black_list: "mysql-server,kunpeng-mpam,hadoop,kunpengcompute.github.io,spark,spark-website,server,postgres,boostkit-bigdata,Spark-ml-algo-lib,Spark-graph-algo-lib,global-cache-adaptor,ceph-global-cache-adaptor,vmi,hmpi,Kbox,KAEdriver,KAE,KAEzip,android-qemu,goldfish-opengl,mesa,llvm,libdrm,media,xucg,hucx,ceph,bcache,global-cache-adaptor,kps,hyperscan,HW265,zstd"
- name: Debug repo owner
run: |
echo ${{ github.repository_owner }}
echo ${{ github.actor }}