auto-merge.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Auto Merge Base to Other Branches
  2. on:
  3. push:
  4. branches:
  5. - base
  6. jobs:
  7. auto-merge:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout repository
  11. uses: actions/checkout@v3
  12. with:
  13. fetch-depth: 0
  14. token: ${{ secrets.GH_TOKEN_AUTO_MERGE }}
  15. - name: Merge base into main
  16. run: |
  17. git config user.name "GitHub Actions"
  18. git config user.email "actions@github.com"
  19. git checkout main
  20. git merge base --no-ff -m "Auto merge base into main"
  21. git push origin main
  22. - name: Merge base into i18n
  23. run: |
  24. git config user.name "GitHub Actions"
  25. git config user.email "actions@github.com"
  26. git checkout i18n
  27. git merge base --no-ff -m "Auto merge base into i18n"
  28. git push origin i18n
  29. - name: Merge base into tabbar
  30. run: |
  31. git config user.name "GitHub Actions"
  32. git config user.email "actions@github.com"
  33. git checkout tabbar
  34. git merge base --no-ff -m "Auto merge base into tabbar"
  35. git push origin tabbar