From f77f005f88a2192f7f050d74ea75481feb2d4f35 Mon Sep 17 00:00:00 2001 From: Glavo Date: Fri, 19 Dec 2025 16:10:02 +0800 Subject: [PATCH] =?UTF-8?q?mirror.yml=20=E4=B8=AD=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E7=94=A8=E6=88=B7=E5=90=8D=20(#5005)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/mirror.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 6a38683fd..5bb49e91b 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -12,11 +12,11 @@ jobs: target: - name: Gitee repo: gitee.com/huanghongxun/HMCL - user: 'GITEE_SYNC_USERNAME' + user: 'hmcl-sync' token: 'GITEE_SYNC_TOKEN' - name: CNB repo: cnb.cool/HMCL-dev/HMCL - user: 'CNB_SYNC_USERNAME' + user: 'cnb' token: 'CNB_SYNC_TOKEN' name: Mirror to ${{ matrix.target.name }} if: ${{ github.repository == 'HMCL-dev/HMCL' }} @@ -26,4 +26,4 @@ jobs: run: | git clone --mirror "https://github.com/$GITHUB_REPOSITORY.git" -- repo cd repo - git push -f --prune "https://${{ secrets[matrix.target.user] }}:${{ secrets[matrix.target.token] }}@${{ matrix.target.repo }}.git" "refs/heads/*:refs/heads/*" "refs/tags/*:refs/tags/*" + git push -f --prune "https://${{ matrix.target.user }}:${{ secrets[matrix.target.token] }}@${{ matrix.target.repo }}.git" "refs/heads/*:refs/heads/*" "refs/tags/*:refs/tags/*"