From b718c9c7d1484feba19e0ef0c39e82a77f0bb38a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=BA=E6=A2=B0=E5=B0=8F=E9=B8=BD?= <128568434+jixiexiaoge@users.noreply.github.com> Date: Sun, 9 Feb 2025 20:07:45 +0800 Subject: [PATCH] Update sync-branches.yml --- .github/workflows/sync-branches.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync-branches.yml b/.github/workflows/sync-branches.yml index c95ffc1..468c199 100644 --- a/.github/workflows/sync-branches.yml +++ b/.github/workflows/sync-branches.yml @@ -10,13 +10,18 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout the main repository + - name: Checkout the target repository (your repo) uses: actions/checkout@v3 with: fetch-depth: 0 # 完整克隆仓库,确保所有历史记录 token: ${{ secrets.GH_TOKEN }} # 访问 GitHub 需要的令牌 - - name: Setup Git + - name: Add the source repository as a remote run: | - git config --global user.name "GitHub Actions" - git config --global user.email "github-actions@github.com" + git remote add upstream https://github.com/ajouatom/openpilot.git + git fetch upstream v8-wip2 + + - name: Push the branch to your repository + run: | + git checkout -B v8-wip2 upstream/v8-wip2 + git push origin v8-wip2 --force