From 0a342ce7aadfa4d585579d0e6ed25f9b0721acde Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 16 Dec 2023 17:08:21 +0800 Subject: [PATCH] =?UTF-8?q?GitHub=20Copilot=E7=9C=9F=E5=A5=BD=E7=94=A8?= =?UTF-8?q?=EF=BC=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/mirror.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index de1a0b0..a38e95e 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -15,19 +15,13 @@ jobs: with: token: ${{ secrets.WORK_TOKEN }} - - name: set git config + - name: mirror branches run: | git config --global user.email 3695888@qq.com git config --global user.name shenjack-action - - - name: add remote repository - run: | git remote add gitea http://shenjack.top:5100/ARS/ars-tools.git - - - name: fetch from remote - run: | - git fetch gitea '*:*' - - - name: push to origin - run: | - git push origin --mirror + git checkout -b temp + git fetch gitea + git checkout main + git branch -d temp + git push origin 'refs/remotes/gitea/*:refs/heads/*' \ No newline at end of file