mindspore-lab repos mirror periodic job #1341
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-lab 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 * * *' | |
# 手动触发事件 | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
tags: | |
description: 'Test scenario tags' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Mirror the github/mindspore-lab repos to openi.pcl.ac.cn/MindSpore. | |
uses: jianyunchao/hub-mirror-action@master | |
with: | |
src: github/mindspore-lab | |
dst: openi.pcl.ac.cn/MindSpore | |
dst_key: ${{ secrets.OPENI_PRIVATE_KEY }} | |
dst_token: ${{ secrets.OPENI_TOKEN }} | |
account_type: org | |
clone_style: ssh | |
force_update: true | |
timeout: '1h' | |
static_list: "mindface" | |
debug: true | |
- name: Mirror the gitee/mindspore repos to openi.pcl.ac.cn/MindSpore. | |
uses: jianyunchao/hub-mirror-action@master | |
with: | |
src: gitee/mindspore | |
dst: openi.pcl.ac.cn/MindSpore | |
dst_key: ${{ secrets.OPENI_PRIVATE_KEY }} | |
dst_token: ${{ secrets.OPENI_TOKEN }} | |
account_type: org | |
clone_style: ssh | |
force_update: true | |
timeout: '1h' | |
static_list: 'mindscience,mindarmour' | |
debug: true |