优化:下载附带 User-Agent 信息、连接超时、重试次数 #2
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: sync2gitee | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
run: | |
name: Sync GitHub to Gitee | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get current repository name | |
id: info | |
uses: actions/[email protected] | |
with: | |
github-token: ${{secrets.GH_TOKEN}} | |
result-encoding: string | |
script: | | |
return context.repo.repo; | |
- name: Mirror the GitHub repos to Gitee | |
uses: Yikun/hub-mirror-action@master | |
with: | |
src: github/TakcC | |
dst: gitee/takcheung | |
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} | |
dst_token: ${{ secrets.GITEE_TOKEN }} | |
static_list: '${{ steps.info.outputs.result }}' | |
account_type: user | |
force_update: true |