Update sync-branches.yml

add
This commit is contained in:
机械小鸽 2024-12-18 18:42:31 +08:00 committed by GitHub
parent 8332e98068
commit 735a1176a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,6 +21,7 @@ jobs:
git config --global user.name "GitHub Actions" git config --global user.name "GitHub Actions"
git config --global user.email "github-actions@github.com" git config --global user.email "github-actions@github.com"
# Existing remotes and branches
- name: Add remote for MoreTore/openpilot - name: Add remote for MoreTore/openpilot
run: | run: |
git remote add moretore https://github.com/MoreTore/openpilot.git git remote add moretore https://github.com/MoreTore/openpilot.git
@ -61,3 +62,37 @@ jobs:
git checkout --orphan FrogPilot-Development git checkout --orphan FrogPilot-Development
git reset --hard frogai/FrogPilot-Development git reset --hard frogai/FrogPilot-Development
git push origin FrogPilot-Development --force git push origin FrogPilot-Development --force
# New remotes and branches
- name: Add remote for opgm/openpilot
run: |
git remote add opgm https://github.com/opgm/openpilot.git
git fetch opgm staging
- name: Sync staging branch from opgm/openpilot
run: |
git branch -r | grep "origin/staging" && git push origin --delete staging || echo "No conflict with staging"
git checkout -b staging opgm/staging
git push origin staging
- name: Add remote for AlexandreSato/openpilot
run: |
git remote add alexandresato https://github.com/AlexandreSato/openpilot.git
git fetch alexandresato personal3
- name: Sync personal3 branch from AlexandreSato/openpilot
run: |
git branch -r | grep "origin/personal3" && git push origin --delete personal3 || echo "No conflict with personal3"
git checkout -b personal3 alexandresato/personal3
git push origin personal3
- name: Add remote for ajouatom/openpilot
run: |
git remote add ajouatom https://github.com/ajouatom/openpilot.git
git fetch ajouatom carrot2-v6
- name: Sync carrot2-v6 branch from ajouatom/openpilot
run: |
git branch -r | grep "origin/carrot2-v6" && git push origin --delete carrot2-v6 || echo "No conflict with carrot2-v6"
git checkout -b carrot2-v6 ajouatom/carrot2-v6
git push origin carrot2-v6