name: Auto Merge Main to Other Branches on: push: branches: - main workflow_dispatch: # 手动触发 jobs: merge-to-i18n: name: Merge main 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 main into i18n run: | git config user.name "GitHub Actions" git config user.email "actions@github.com" git checkout i18n git merge main --no-ff -m "Auto merge main into i18n" git push origin i18n merge-to-tabbar: name: Merge main 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 main into tabbar run: | git config user.name "GitHub Actions" git config user.email "actions@github.com" git checkout tabbar git merge main --no-ff -m "Auto merge main into tabbar" git push origin tabbar merge-to-spa: name: Merge main 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 main into spa run: | git config user.name "GitHub Actions" git config user.email "actions@github.com" git checkout spa git merge main --no-ff -m "Auto merge main into spa" git push origin spa