diff --git a/.github/workflows/sync-branches.yml b/.github/workflows/sync-branches.yml index 0bec11c..3459883 100644 --- a/.github/workflows/sync-branches.yml +++ b/.github/workflows/sync-branches.yml @@ -21,6 +21,7 @@ jobs: git config --global user.name "GitHub Actions" git config --global user.email "github-actions@github.com" + # Existing remotes and branches - name: Add remote for MoreTore/openpilot run: | git remote add moretore https://github.com/MoreTore/openpilot.git @@ -61,3 +62,37 @@ jobs: git checkout --orphan FrogPilot-Development git reset --hard frogai/FrogPilot-Development 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