auto-merge.yml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. name: Auto Merge Main to Other Branches
  2. on:
  3. push:
  4. branches:
  5. - main
  6. workflow_dispatch: # 手动触发
  7. jobs:
  8. # merge-to-release:
  9. # name: Merge main into release
  10. # runs-on: ubuntu-latest
  11. # steps:
  12. # - name: Checkout repository
  13. # uses: actions/checkout@v4
  14. # with:
  15. # fetch-depth: 0
  16. # token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  17. # - name: Merge main into release
  18. # run: |
  19. # git config user.name "GitHub Actions"
  20. # git config user.email "actions@github.com"
  21. # git checkout release
  22. # git merge main --no-ff -m "Auto merge main into release"
  23. # git push origin release
  24. merge-to-i18n:
  25. name: Merge main into i18n
  26. runs-on: ubuntu-latest
  27. steps:
  28. - name: Checkout repository
  29. uses: actions/checkout@v4
  30. with:
  31. fetch-depth: 0
  32. token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  33. - name: Merge main into i18n
  34. run: |
  35. git config user.name "GitHub Actions"
  36. git config user.email "actions@github.com"
  37. git checkout i18n
  38. git merge main --no-ff -m "Auto merge main into i18n"
  39. git push origin i18n
  40. merge-to-base-sard-ui:
  41. name: Merge main into base-sard-ui
  42. runs-on: ubuntu-latest
  43. steps:
  44. - name: Checkout repository
  45. uses: actions/checkout@v4
  46. with:
  47. fetch-depth: 0
  48. token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  49. - name: Merge main into base-sard-ui
  50. run: |
  51. git config user.name "GitHub Actions"
  52. git config user.email "actions@github.com"
  53. git checkout base-sard-ui
  54. git merge main --no-ff -m "Auto merge main into base-sard-ui"
  55. git push origin base-sard-ui
  56. merge-to-base-uv-ui:
  57. name: Merge main into base-uv-ui
  58. runs-on: ubuntu-latest
  59. steps:
  60. - name: Checkout repository
  61. uses: actions/checkout@v4
  62. with:
  63. fetch-depth: 0
  64. token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  65. - name: Merge main into base-uv-ui
  66. run: |
  67. git config user.name "GitHub Actions"
  68. git config user.email "actions@github.com"
  69. git checkout base-uv-ui
  70. git merge main --no-ff -m "Auto merge main into base-uv-ui"
  71. git push origin base-uv-ui
  72. merge-to-base-uview-pro:
  73. name: Merge main into base-uview-pro
  74. runs-on: ubuntu-latest
  75. steps:
  76. - name: Checkout repository
  77. uses: actions/checkout@v4
  78. with:
  79. fetch-depth: 0
  80. token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  81. - name: Merge main into base-uview-pro
  82. run: |
  83. git config user.name "GitHub Actions"
  84. git config user.email "actions@github.com"
  85. git checkout base-uview-pro
  86. git merge main --no-ff -m "Auto merge main into base-uview-pro"
  87. git push origin base-uview-pro
  88. merge-to-base-uview-plus:
  89. name: Merge main into base-uview-plus
  90. runs-on: ubuntu-latest
  91. steps:
  92. - name: Checkout repository
  93. uses: actions/checkout@v4
  94. with:
  95. fetch-depth: 0
  96. token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  97. - name: Merge main into base-uview-plus
  98. run: |
  99. git config user.name "GitHub Actions"
  100. git config user.email "actions@github.com"
  101. git checkout base-uview-plus
  102. git merge main --no-ff -m "Auto merge main into base-uview-plus"
  103. git push origin base-uview-plus
  104. # merge-to-base-tm-ui:
  105. # name: Merge main into base-tm-ui
  106. # runs-on: ubuntu-latest
  107. # steps:
  108. # - name: Checkout repository
  109. # uses: actions/checkout@v4
  110. # with:
  111. # fetch-depth: 0
  112. # token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  113. # - name: Merge main into base-tm-ui
  114. # run: |
  115. # git config user.name "GitHub Actions"
  116. # git config user.email "actions@github.com"
  117. # git checkout base-tm-ui
  118. # git merge main --no-ff -m "Auto merge main into base-tm-ui"
  119. # git push origin base-tm-ui
  120. merge-to-base-skiyee-ui:
  121. name: Merge main into base-skiyee-ui
  122. runs-on: ubuntu-latest
  123. steps:
  124. - name: Checkout repository
  125. uses: actions/checkout@v4
  126. with:
  127. fetch-depth: 0
  128. token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  129. - name: Merge main into base-skiyee-ui
  130. run: |
  131. git config user.name "GitHub Actions"
  132. git config user.email "actions@github.com"
  133. git checkout base-skiyee-ui
  134. git merge main --no-ff -m "Auto merge main into base-skiyee-ui"
  135. git push origin base-skiyee-ui
  136. merge-to-main-v4:
  137. name: Merge main into main-v4
  138. runs-on: ubuntu-latest
  139. steps:
  140. - name: Checkout repository
  141. uses: actions/checkout@v4
  142. with:
  143. fetch-depth: 0
  144. token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  145. - name: Merge main into main-v4
  146. run: |
  147. git config user.name "GitHub Actions"
  148. git config user.email "actions@github.com"
  149. git checkout main-v4
  150. git merge main --no-ff -m "Auto merge main into main-v4"
  151. git push origin main-v4
  152. merge-to-i18n-v4:
  153. name: Merge main into i18n-v4
  154. runs-on: ubuntu-latest
  155. steps:
  156. - name: Checkout repository
  157. uses: actions/checkout@v4
  158. with:
  159. fetch-depth: 0
  160. token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  161. - name: Merge main into i18n-v4
  162. run: |
  163. git config user.name "GitHub Actions"
  164. git config user.email "actions@github.com"
  165. git checkout i18n-v4
  166. git merge main --no-ff -m "Auto merge main into i18n-v4"
  167. git push origin i18n-v4