Переглянути джерело

ci(auto-merge): 添加将main分支自动合并到base-tm-ui分支的工作流

feige996 9 місяців тому
батько
коміт
dcf00a3d48
1 змінених файлів з 18 додано та 0 видалено
  1. 18 0
      .github/workflows/auto-merge.yml

+ 18 - 0
.github/workflows/auto-merge.yml

@@ -97,6 +97,24 @@ jobs:
           git merge main --no-ff -m "Auto merge main into base-uview-plus"
           git push origin base-uview-plus
 
+  merge-to-base-tm-ui:
+    name: Merge main into base-tm-ui
+    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 base-tm-ui
+        run: |
+          git config user.name "GitHub Actions"
+          git config user.email "actions@github.com"
+          git checkout base-tm-ui
+          git merge main --no-ff -m "Auto merge main into base-tm-ui"
+          git push origin base-tm-ui
+
   merge-to-base-skiyee-ui:
     name: Merge main into base-skiyee-ui
     runs-on: ubuntu-latest