Update sync-branches.yml

This commit is contained in:
机械小鸽 2025-02-13 18:49:22 +08:00 committed by GitHub
parent b718c9c7d1
commit 549db6a438
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,12 +16,17 @@ jobs:
fetch-depth: 0 # 完整克隆仓库,确保所有历史记录
token: ${{ secrets.GH_TOKEN }} # 访问 GitHub 需要的令牌
- name: Add the source repository as a remote
- name: Add the source repository as a remote and fetch branches
run: |
git remote add upstream https://github.com/ajouatom/openpilot.git
git fetch upstream v8-wip2
git fetch upstream v8-wip2 v8-wip2-da-mazda_spam --no-tags
- name: Push the branch to your repository
- name: Push v8-wip2 branch to your repository
run: |
git checkout -B v8-wip2 upstream/v8-wip2
git push origin v8-wip2 --force
- name: Push v8-wip2-da-mazda_spam branch to your repository
run: |
git checkout -B v8-wip2-da-mazda_spam upstream/v8-wip2-da-mazda_spam
git push origin v8-wip2-da-mazda_spam --force