ci: 替换并更新自动合并到阿里云的工作流文件
将旧的 auto-merge.yml 替换为新的 auto-merge-to-aliyun.yml,内容保持不变但文件名更明确
This commit is contained in:
25
.github/workflows/auto-merge-to-aliyun.yml
vendored
Normal file
25
.github/workflows/auto-merge-to-aliyun.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Auto Merge aliyun
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch: # 手动触发
|
||||
|
||||
jobs:
|
||||
auto-merge:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
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
|
||||
Reference in New Issue
Block a user