From 516ee8beb7a00da1a88aa7e92546f1eed73d5cec Mon Sep 17 00:00:00 2001 From: Zhengchen Tao Date: Tue, 28 Apr 2026 15:00:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/sync-upst?= =?UTF-8?q?ream.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/sync-upstream.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/sync-upstream.yml b/.gitea/workflows/sync-upstream.yml index 4b7a0ac7..78032a49 100644 --- a/.gitea/workflows/sync-upstream.yml +++ b/.gitea/workflows/sync-upstream.yml @@ -34,7 +34,7 @@ jobs: echo "==> Syncing main to $TARGET" git rev-parse "$TARGET" || { echo "❌ Tag $TARGET not found"; exit 1; } - git checkout main + git checkout -B main origin/main git reset --hard "$TARGET" git push origin main --force-with-lease git push origin "$TARGET" # tag 也推到 dev 仓库 \ No newline at end of file