更新 .gitea/workflows/sync-upstream.yml

This commit is contained in:
2026-04-28 15:00:52 +08:00
parent 759df5be73
commit 516ee8beb7
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
echo "==> Syncing main to $TARGET" echo "==> Syncing main to $TARGET"
git rev-parse "$TARGET" || { echo "❌ Tag $TARGET not found"; exit 1; } 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 reset --hard "$TARGET"
git push origin main --force-with-lease git push origin main --force-with-lease
git push origin "$TARGET" # tag 也推到 dev 仓库 git push origin "$TARGET" # tag 也推到 dev 仓库