unibest/.github/workflows/auto-merge.yml
feige996 e4ee24004c ci(auto-merge): 更新工作流名称并注释掉仓库检出步骤
将自动合并工作流的名称从“Auto Merge Base to Other Branches”更改为“Auto Merge aliyun”,并注释掉仓库检出步骤以简化流程
2025-05-22 18:46:38 +08:00

26 lines
612 B
YAML

name: Auto Merge aliyun
on:
push:
branches:
- main
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_MERGE2 }}
- 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