Update sync-branches.yml

r3
This commit is contained in:
机械小鸽 2024-12-31 14:07:42 +08:00 committed by GitHub
parent 1abc92c0f2
commit b6c0551c62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,14 +85,9 @@ jobs:
- name: Add remote for commaai/openpilot
run: |
git remote add commaai https://github.com/commaai/openpilot.git
git fetch commaai master
git fetch commaai release3
# Sync master branch from commaai/openpilot to opmaster
- name: Sync master branch to opmaster
run: |
git branch -r | grep "origin/opmaster" && git push origin --delete opmaster || echo "No conflict with opmaster"
git checkout -b opmaster commaai/master
git push origin opmaster
# Sync release3 branch from commaai/openpilot to release3
- name: Sync release3 branch
run: |