From bedf0ae0cf0870bc2d4002c6f25f46fc9c7b6582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=89=E4=BA=9E=E5=9D=A4?= Date: Sat, 22 Jun 2024 01:18:10 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.github/workflows/sync.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 400dc4b..ce06783 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -1,4 +1,4 @@ -name: Sync from Gitea repository +name: 从上游Gitea仓库同步更新 on: schedule: @@ -25,7 +25,7 @@ jobs: GITEA_USERNAME: ${{ secrets.GITEA_USERNAME }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: | - git clone --mirror https://${GITEA_USERNAME}:${GITEA_TOKEN}@${GITEA_URL} gitea_repo + git clone --bare https://${GITEA_USERNAME}:${GITEA_TOKEN}@${GITEA_URL} gitea_repo - name: Sync changes to GitHub env: GITHUB_ACTOR: ${{ github.actor }} @@ -33,4 +33,5 @@ jobs: run: | cd gitea_repo git remote set-url --push origin https://${GITHUB_ACTOR}:${GH_TOKEN}@github.com/YaKun9/SageTools.git - git push --mirror \ No newline at end of file + git fetch --all + git push --force --all \ No newline at end of file