auto-merge.yml 618 B

1234567891011121314151617181920212223242526
  1. name: Auto Merge Base to Other Branches
  2. on:
  3. push:
  4. branches:
  5. - main
  6. workflow_dispatch: # 手动触发
  7. jobs:
  8. auto-merge:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout repository
  12. uses: actions/checkout@v3
  13. with:
  14. fetch-depth: 0
  15. token: ${{ secrets.GH_TOKEN_AUTO_MERGE2 }}
  16. - name: Merge main into aliyun
  17. run: |
  18. git config user.name "GitHub Actions"
  19. git config user.email "actions@github.com"
  20. git checkout aliyun
  21. git merge main --no-ff -m "Auto merge main into aliyun"
  22. git push origin aliyun