unibest/.github/workflows/auto-merge.yml
feige996 0c95957493 ci: 简化自动合并工作流,仅合并main到aliyun分支
简化了自动合并工作流,删除了对base分支的合并操作,仅保留将main分支合并到aliyun分支的步骤,以减少不必要的合并操作。
2025-05-22 15:39:27 +08:00

26 lines
617 B
YAML

name: Auto Merge Base to Other Branches
on:
push:
branches:
- base
workflow_dispatch: # 手动触发
jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
- name: Merge main into aliyun
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git checkout aliyun
git merge main --no-ff -m "Auto merge main into aliyun"
git push origin aliyun