ci(workflow): 添加从main分支合并到main-v4和i18n-v4的自动合并工作流
This commit is contained in:
36
.github/workflows/auto-merge.yml
vendored
36
.github/workflows/auto-merge.yml
vendored
@@ -132,3 +132,39 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user