From 976a391e580dfc09a1e12458d9d8f13179f0f3c4 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 16 Dec 2023 16:58:06 +0800 Subject: [PATCH] mirror! --- .github/workflows/mirror.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index fa5ab1f..de1a0b0 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -15,11 +15,19 @@ jobs: with: token: ${{ secrets.WORK_TOKEN }} - - name: clone remote - shell: bash + - name: set git config 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 - git fetch gitea + + - name: fetch from remote + run: | + git fetch gitea '*:*' + + - name: push to origin + run: | git push origin --mirror