Skip to content

Hub Mirror Action v0.05

Compare
Choose a tag to compare
@Yikun Yikun released this 18 Mar 02:45
· 63 commits to master since this release
c4dc341

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