Compare commits

...

10 Commits

Author SHA1 Message Date
机械小鸽
ee385717a3
Update push2gitee.yml 2025-06-22 17:45:30 +08:00
机械小鸽
0ae848f6cf
Update push2gitee.yml
Some checks failed
Sync to Private Gitee / sync (push) Has been cancelled
Sync Branch / sync (push) Has been cancelled
new
2025-06-22 17:16:24 +08:00
机械小鸽
8ce8764492
Update push2gitee.yml 2025-06-22 17:14:48 +08:00
机械小鸽
d31e02c091
Create push2gitee.yml 2025-06-22 17:12:28 +08:00
机械小鸽
39cc90da5e
Update sync-branches.yml 2025-06-03 18:08:28 +08:00
机械小鸽
cbd7bfd2ca
Update sync-branches.yml
carrot2-v8-da
2025-05-13 20:28:29 +08:00
机械小鸽
04e821418c
Update sync-branches.yml
carrot2-v8-da
2025-05-12 08:51:17 +08:00
机械小鸽
1731f18066
Update sync-branches.yml
wip6
2025-04-19 20:31:09 +08:00
机械小鸽
ac64c06093
Update sync-branches.yml
v5
2025-04-13 19:07:48 +08:00
机械小鸽
3e6833042a
Update sync-branches.yml
KisaPilot
2025-04-02 18:10:13 +08:00
2 changed files with 38 additions and 19 deletions

33
.github/workflows/push2gitee.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Daily Sync to Gitee
on:
schedule:
- cron: '0 2 * * *' # 每天UTC时间2点执行北京时间10点
workflow_dispatch: # 支持手动触发
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v4
- name: Configure Git
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
- name: Add Gitee remote and force push
env:
GITEE_USERNAME: zhudongjer
GITEE_TOKEN: 11f606dc48ee2c481918e169b2291fb3c4705cdf
run: |
# 添加 Gitee 远程地址HTTP + Token
git remote add gitee http://$GITEE_USERNAME:$GITEE_TOKEN@49.235.152.15:3000/$GITEE_USERNAME/carrot.git
# 强制推送当前分支(假设为 master
git push gitee master --force
# 推送标签(如果有)
git push gitee --tags

View File

@ -18,28 +18,14 @@ jobs:
token: ${{ secrets.GH_TOKEN }} # 访问 GitHub 需要的令牌 token: ${{ secrets.GH_TOKEN }} # 访问 GitHub 需要的令牌
# 2. Add the source repositories as remotes and fetch branches # 2. Add the source repositories as remotes and fetch branches
- name: Add upstream repository and fetch branches - name: Add upstream repositories and fetch branches
run: | run: |
git remote add upstream https://github.com/ajouatom/openpilot.git git remote add upstream https://github.com/ajouatom/openpilot.git
git fetch upstream v8-wip4 v8-wip4-da --no-tags git fetch upstream carrot2-v8 --no-tags
git remote add mazda_upstream https://github.com/heqichen/qcpilot.git
git fetch mazda_upstream dev-cpp-selfdrived --no-tags
# 3. Push v8-wip4 branch to your repository # 3. Push v8-wip4 branch to your repository
- name: Push v8-wip4 branch to your repository - name: Push carrot2-v8 branch to your repository
run: | run: |
git checkout -B v8-wip4 upstream/v8-wip4 git checkout -B carrot2-v8 upstream/carrot2-v8
git push origin v8-wip4 --force git push origin carrot2-v8 --force
# 4. Push v8-wip4-da branch to your repository
- name: Push v8-wip4-da branch to your repository
run: |
git checkout -B v8-wip4-da upstream/v8-wip4-da
git push origin v8-wip4-da --force
# 5. Push dev-cpp-selfdrivedt branch to your repository
- name: Push dev-cpp-selfdrived branch to your repository
run: |
git checkout -B dev-cpp-selfdrived mazda_upstream/dev-cpp-selfdrived
git push origin dev-cpp-selfdrived --force