MindSpore Gitee repos mirror periodic job #14828
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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/[email protected] | |
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 |