更新 .gitea/workflows/sync-upstream.yml
This commit is contained in:
@@ -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 仓库
|
||||
Reference in New Issue
Block a user