-
Notifications
You must be signed in to change notification settings - Fork 19
44 lines (40 loc) · 1.22 KB
/
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
name: MindSpore Gitee repos mirror periodic job
on:
pull_request:
paths:
- '.github/workflows/**'
# Runs at every pull requests submitted in master branch
branches: [ master, main ]
schedule:
# Runs at 0,2,4,6...,22th hour every day (every 2 hours)
- cron: '0 */2 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Mirror the mindspore.
uses: Yikun/hub-mirror-action@v1.4
with:
src: gitee/mindspore
dst: github/mindspore-ai
dst_key: ${{ secrets.SYNC_MINDSPORE_PRIVATE_KEY }}
dst_token: ${{ secrets.SYNC_MINDSPORE_TOKEN }}
account_type: org
clone_style: ssh
force_update: true
static_list: 'mindspore'
debug: true
lfs: true
- name: Mirror the gitee/mindspore org repos to github/mindspore-ai.
uses: Yikun/hub-mirror-action@v1.4
with:
src: gitee/mindspore
dst: github/mindspore-ai
dst_key: ${{ secrets.SYNC_MINDSPORE_PRIVATE_KEY }}
dst_token: ${{ secrets.SYNC_MINDSPORE_TOKEN }}
account_type: org
clone_style: ssh
force_update: true
black_list: 'infrastructure,mindcv,mindformers'
debug: true
lfs: true