Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache support for mindspore #15

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/repos-mirror.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: MindSpore Gitee repos mirror periodic job

on:
pull_request:
# Runs at every PRs submitted in master workflows
branches: [ master ]
paths:
- '.github/workflows/**'
schedule:
# Runs at 01:00 UTC (9:00 AM Beijing) every day
- cron: '0 1 * * *'
Expand All @@ -11,11 +16,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Cache mindspore src repos
uses: actions/cache@v1
with:
path: /home/runner/work/infrastructure/infrastructure/mindspore-cache
key: ${{ runner.os }}-mindspore-repos-cache

- name: Mirror the gitee/mindspore org repos to github/mindspore-ai.
uses: Yikun/hub-mirror-action@v0.04
uses: Yikun/hub-mirror-action@v0.05
with:
src: gitee/mindspore
dst: github/mindspore-ai
dst_key: ${{ secrets.SYNC_MINDSPORE_PRIVATE_KEY }}
dst_token: ${{ secrets.SYNC_MINDSPORE_TOKEN }}
account_type: org
cache_path: /github/workspace/mindspore-cache