Feature
- Add cache path support #13
Below is an example to use cache_path and coordinate with action/cache to speed up the mirror.
- name: Cache src repos
uses: actions/cache@v1
with:
path: /home/runner/work/hub-mirror-action/hub-mirror-action/hub-mirror-cache
key: ${{ runner.os }}-openeuler-repos-cache
- name: Mirror Github to Gitee
uses: ./.
with:
src: github/Yikun
dst: gitee/yikunkero
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
cache_path: /github/workspace/hub-mirror-cache
You can see the complete demo on verify-on-ubuntu-user-cache.yml