Sfoglia il codice sorgente

ci: 添加将main分支自动合并到base-uview-pro的工作流

feige996 8 mesi fa
parent
commit
ede06b367d
1 ha cambiato i file con 18 aggiunte e 0 eliminazioni
  1. 18 0
      .github/workflows/auto-merge.yml

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

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