瀏覽代碼

ci: 重构工作流配置并添加自动发布日志功能

- 重命名 auto-merge.yml 中的任务名称并优化结构
- 新增 release-log.yml 工作流用于自动生成发布日志
- 删除旧的 release.yml 工作流文件
```

这个提交消息:
1. 使用了 `ci` 类型,因为这些变更都是针对 CI/CD 工作流配置的修改
2. 简洁地描述了三个主要变更:
   - 重构了 auto-merge 工作流
   - 新增了发布日志功能
   - 删除了旧的工作流文件
3. 符合中文语言习惯和提交消息规范
4. 在50字符限制内完成了描述
5. 使用动词开头并保持简洁
feige996 11 月之前
父節點
當前提交
8762df2392
共有 2 個文件被更改,包括 32 次插入1 次删除
  1. 32 1
      .github/workflows/auto-merge.yml
  2. 0 0
      .github/workflows/release-log.yml

+ 32 - 1
.github/workflows/auto-merge.yml

@@ -7,7 +7,8 @@ on:
   workflow_dispatch: # 手动触发
 
 jobs:
-  auto-merge:
+  merge-to-main:
+    name: Merge base into main
     runs-on: ubuntu-latest
     steps:
       - name: Checkout repository
@@ -24,6 +25,16 @@ jobs:
           git merge base --no-ff -m "Auto merge base into main"
           git push origin main
 
+  merge-to-i18n:
+    name: Merge base into i18n
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
+          token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
+
       - name: Merge base into i18n
         run: |
           git config user.name "GitHub Actions"
@@ -32,6 +43,16 @@ jobs:
           git merge base --no-ff -m "Auto merge base into i18n"
           git push origin i18n
 
+  merge-to-tabbar:
+    name: Merge base into tabbar
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
+          token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
+
       - name: Merge base into tabbar
         run: |
           git config user.name "GitHub Actions"
@@ -40,6 +61,16 @@ jobs:
           git merge base --no-ff -m "Auto merge base into tabbar"
           git push origin tabbar
 
+  merge-to-spa:
+    name: Merge base into spa
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
+          token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
+
       - name: Merge base into spa
         run: |
           git config user.name "GitHub Actions"

.github/workflows/release.yml → .github/workflows/release-log.yml