机械小鸽
|
18199deacd
|
Update sync-branches.yml
dev-cpp-selfdrived
|
2025-04-01 09:14:43 +08:00 |
|
机械小鸽
|
43107ff36b
|
Add files via upload
|
2025-03-31 13:56:26 +08:00 |
|
机械小鸽
|
bc6a0a61f1
|
Update README.md
|
2025-03-26 20:41:37 +08:00 |
|
机械小鸽
|
05b1534738
|
Update README.md
|
2025-03-26 20:13:08 +08:00 |
|
机械小鸽
|
8903cdb1ee
|
Update sync-branches.yml
|
2025-03-17 18:25:21 +08:00 |
|
机械小鸽
|
3ecb3bf711
|
Update sync-branches.yml
|
2025-03-13 18:20:00 +08:00 |
|
机械小鸽
|
26c61dc9fe
|
Update sync-branches.yml
|
2025-03-13 18:17:52 +08:00 |
|
机械小鸽
|
788ed147c1
|
Update sync-branches.yml
|
2025-02-26 18:17:56 +08:00 |
|
机械小鸽
|
cc3040b0bc
|
Update sync-branches.yml
|
2025-02-18 18:11:47 +08:00 |
|
机械小鸽
|
6523d3bc5d
|
Update sync-branches.yml
new
|
2025-02-18 18:07:53 +08:00 |
|
机械小鸽
|
e1848a3817
|
Update sync-branches.yml
|
2025-02-16 20:49:24 +08:00 |
|
机械小鸽
|
737a363dfd
|
Update sync-branches.yml
|
2025-02-16 13:21:26 +08:00 |
|
机械小鸽
|
549db6a438
|
Update sync-branches.yml
|
2025-02-13 18:49:22 +08:00 |
|
机械小鸽
|
b718c9c7d1
|
Update sync-branches.yml
|
2025-02-09 20:07:45 +08:00 |
|
机械小鸽
|
ca74a49727
|
Update sync-branches.yml
|
2025-02-07 08:34:37 +08:00 |
|
机械小鸽
|
f6d9fa0dc2
|
Update sync-branches.yml
xda
|
2025-02-04 09:57:31 +08:00 |
|
机械小鸽
|
1e0965edbc
|
Update sync-branches.yml
|
2025-02-03 16:20:14 +08:00 |
|
机械小鸽
|
906b43e2b6
|
Update sync-branches.yml
name: Sync v7-wip10 Branch
on:
schedule:
- cron: '0 10 * * *' # 每天 UTC 10 点运行
workflow_dispatch: # 允许手动触发
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout the main repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # 完整克隆仓库,确保所有历史记录
token: ${{ secrets.GH_TOKEN }} # 访问 GitHub 需要的令牌
- name: Setup Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "github-actions@github.com"
- name: Add remote for yysnet/carrotpilot
run: |
git remote add carrotpilot https://github.com/yysnet/carrotpilot.git
git fetch carrotpilot +refs/heads/v7-wip10:refs/remotes/carrotpilot/v7-wip10
- name: Ensure local branch matches remote
run: |
# 检查本地是否已有 v7-wip10 分支,如果有则删除
if git show-ref --verify --quiet refs/heads/v7-wip10; then
git branch -D v7-wip10
fi
# 创建本地 v7-wip10 分支并跟踪远程分支
git checkout -B v7-wip10 carrotpilot/v7-wip10
- name: Push to origin repository
run: |
git push origin v7-wip10 --force
|
2025-02-03 10:08:32 +08:00 |
|
机械小鸽
|
f02a74b225
|
Update sync-branches.yml
name: Sync Branches
on:
schedule:
- cron: '0 10 * * *' # 每天10点UTC
workflow_dispatch: # 允许手动触发
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout the main repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # 保证完整克隆仓库,包括历史记录
token: ${{ secrets.GH_TOKEN }} # 显式传递 GH_TOKEN
- name: Setup Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "github-actions@github.com"
- name: Add remote for yysnet/carrotpilot
run: |
git remote add carrotpilot https://github.com/yysnet/carrotpilot.git || echo "Remote already exists"
git fetch carrotpilot v7-wip10 --depth=1 # 只获取该分支的最新提交
- name: Sync v7-wip10 from carrotpilot
run: |
# 检查远程是否有 v7-wip10 分支
if git ls-remote --heads carrotpilot v7-wip10 | grep -q "refs/heads/v7-wip10"; then
git checkout -B v7-wip10 carrotpilot/v7-wip10 # 强制切换到远程分支
git push origin v7-wip10 --force # 强制推送到自己的仓库
else
echo "Branch v7-wip10 does not exist on carrotpilot, skipping..."
fi
|
2025-02-03 10:05:47 +08:00 |
|
机械小鸽
|
b4ab70fef7
|
Update sync-branches.yml
yysnet
|
2025-02-03 09:46:27 +08:00 |
|
机械小鸽
|
5dd224a846
|
Update sync-branches.yml
v7-wip10-x-da
|
2025-02-02 11:20:36 +08:00 |
|
机械小鸽
|
7d86a32209
|
Update sync-branches.yml
|
2025-01-22 22:40:31 +08:00 |
|
机械小鸽
|
98bcda9235
|
Update sync-branches.yml
wip7
|
2025-01-12 17:55:01 +08:00 |
|
机械小鸽
|
276807e80c
|
Update sync-branches.yml
v7-wip6-casper_ev
|
2025-01-09 09:12:52 +08:00 |
|
机械小鸽
|
069ec4d20a
|
Delete .github/PULL_REQUEST_TEMPLATE directory
|
2025-01-05 13:01:10 +08:00 |
|
机械小鸽
|
4d4b913898
|
Delete .github/ISSUE_TEMPLATE directory
|
2025-01-05 13:00:58 +08:00 |
|
机械小鸽
|
7233c2e7c7
|
Delete .github/workflows/sync-to-gitea.yml
|
2025-01-05 12:54:56 +08:00 |
|
机械小鸽
|
557919ee63
|
Update sync-branches.yml
v6
|
2025-01-05 12:51:20 +08:00 |
|
机械小鸽
|
edeed252be
|
Update sync-branches.yml
wip6
|
2025-01-05 12:31:49 +08:00 |
|
机械小鸽
|
f291ef956f
|
Add files via upload
generate_keys.sh
|
2025-01-04 10:42:12 +08:00 |
|
机械小鸽
|
3a3c9e7ee3
|
Update sync-branches.yml
v7-wip5-ndv2
|
2025-01-03 16:47:47 +08:00 |
|
机械小鸽
|
b6c0551c62
|
Update sync-branches.yml
r3
|
2024-12-31 14:07:42 +08:00 |
|
机械小鸽
|
1abc92c0f2
|
Update sync-branches.yml
op
|
2024-12-31 13:57:32 +08:00 |
|
机械小鸽
|
72c338c1ba
|
Update README.md
|
2024-12-26 20:42:26 +08:00 |
|
机械小鸽
|
ceb447d067
|
Update README.md
|
2024-12-26 20:41:56 +08:00 |
|
机械小鸽
|
5a86466628
|
delete files
|
2024-12-26 12:38:26 +00:00 |
|
机械小鸽
|
aa2bdae74a
|
Update sync-branches.yml
|
2024-12-26 20:30:46 +08:00 |
|
机械小鸽
|
efaf252b10
|
Update sync-branches.yml
|
2024-12-18 19:45:43 +08:00 |
|
机械小鸽
|
735a1176a4
|
Update sync-branches.yml
add
|
2024-12-18 18:42:31 +08:00 |
|
机械小鸽
|
8332e98068
|
Update sync-to-gitea.yml
发
|
2024-12-07 17:52:15 +08:00 |
|
机械小鸽
|
8a61685f3c
|
Update sync-to-gitea.yml
q
|
2024-12-07 17:47:33 +08:00 |
|
机械小鸽
|
a8ba0f3d37
|
Update sync-to-gitea.yml
s
|
2024-12-07 17:42:22 +08:00 |
|
机械小鸽
|
31de08df32
|
Update sync-to-gitea.yml
|
2024-12-07 17:39:25 +08:00 |
|
机械小鸽
|
00b11e345e
|
Update sync-to-gitea.yml
fix
|
2024-12-07 17:28:53 +08:00 |
|
机械小鸽
|
3062ca85fc
|
Update sync-to-gitea.yml
|
2024-12-07 17:17:33 +08:00 |
|
机械小鸽
|
585f7fdaeb
|
Create sync-to-gitea.yml
|
2024-12-07 17:03:01 +08:00 |
|
机械小鸽
|
5fec55644f
|
Update sync-branches.yml
|
2024-12-07 16:13:34 +08:00 |
|
机械小鸽
|
74dd1cb62d
|
Update sync-branches.yml
|
2024-12-07 16:07:35 +08:00 |
|
机械小鸽
|
d1e8e8dcb4
|
Update sync-branches.yml
|
2024-12-07 16:04:32 +08:00 |
|
机械小鸽
|
9c9e35dba2
|
Update sync-branches.yml
4
|
2024-12-02 10:32:46 +08:00 |
|