| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- name: Auto Merge Base to Other Branches
- on:
- push:
- branches:
- - base
- workflow_dispatch: # 手动触发
- jobs:
- merge-to-i18n:
- name: Merge base into i18n
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
- - name: Merge base into i18n
- run: |
- git config user.name "GitHub Actions"
- git config user.email "actions@github.com"
- git checkout i18n
- git merge base --no-ff -m "Auto merge base into i18n"
- git push origin i18n
- merge-to-tabbar:
- name: Merge base into tabbar
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
- - name: Merge base into tabbar
- run: |
- git config user.name "GitHub Actions"
- git config user.email "actions@github.com"
- git checkout tabbar
- git merge base --no-ff -m "Auto merge base into tabbar"
- git push origin tabbar
- merge-to-spa:
- name: Merge base into spa
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
- - name: Merge base into spa
- run: |
- git config user.name "GitHub Actions"
- git config user.email "actions@github.com"
- git checkout spa
- git merge base --no-ff -m "Auto merge base into spa"
- git push origin spa
|