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 openeuler #3

Merged
merged 4 commits into from
Mar 18, 2020
Merged
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
11 changes: 10 additions & 1 deletion .github/workflows/repo-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
# Runs at every pull requests submitted in master branch
branches: [ master ]
paths:
- '.github/workflows/**'
schedule:
# Runs at 01:00 UTC (9:00 AM Beijing) every day
- cron: '0 1 * * *'
Expand All @@ -14,12 +16,19 @@ jobs:
runs-on: ubuntu-latest

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

- name: Mirror the gitee/openeuler org repos to github/openeuler-mirror.
uses: Yikun/hub-mirror-action@v0.04
uses: Yikun/hub-mirror-action@v0.05
with:
src: gitee/openeuler
dst: github/openeuler-mirror
dst_key: ${{ secrets.SYNC_EULER_PRIVATE_KEY }}
dst_token: ${{ secrets.SYNC_EULER_TOKEN }}
account_type: org
clone_style: ssh
cache_path: /github/workspace/openeuler-cache