From b7cb0321747fdc71fc2fb0103b9b1cfcb6f66580 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Wed, 22 Oct 2025 09:44:05 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=20=E6=9B=B4=E6=96=B0=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=90=88=E5=B9=B6=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 启用从main到base分支的自动合并 - 移除main-v4和i18n-v4相关的合并任务 --- .github/workflows/auto-merge.yml | 68 ++++++++------------------------ 1 file changed, 16 insertions(+), 52 deletions(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 30a18db..e0779aa 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -7,23 +7,23 @@ on: workflow_dispatch: # 手动触发 jobs: - # merge-to-release: - # name: Merge main into release - # runs-on: ubuntu-latest - # steps: - # - name: Checkout repository - # uses: actions/checkout@v4 - # with: - # fetch-depth: 0 - # token: ${{ secrets.GH_TOKEN_AUTO_MERGE }} + merge-to-base: + name: Merge main into base + 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 release - # run: | - # git config user.name "GitHub Actions" - # git config user.email "actions@github.com" - # git checkout release - # git merge main --no-ff -m "Auto merge main into release" - # git push origin release + - name: Merge main into base + run: | + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + git checkout base + git merge main --no-ff -m "Auto merge main into base" + git push origin base merge-to-i18n: name: Merge main into i18n @@ -150,39 +150,3 @@ jobs: git checkout base-skiyee-ui git merge main --no-ff -m "Auto merge main into base-skiyee-ui" git push origin base-skiyee-ui - - merge-to-main-v4: - name: Merge main into main-v4 - 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 main-v4 - run: | - git config user.name "GitHub Actions" - git config user.email "actions@github.com" - git checkout main-v4 - git merge main --no-ff -m "Auto merge main into main-v4" - git push origin main-v4 - - merge-to-i18n-v4: - name: Merge main into i18n-v4 - 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 i18n-v4 - run: | - git config user.name "GitHub Actions" - git config user.email "actions@github.com" - git checkout i18n-v4 - git merge main --no-ff -m "Auto merge main into i18n-v4" - git push origin i18n-v4