项目作者: michelmelo

项目描述 :
MM :: Merge branch
高级语言: Ruby
项目地址: git://github.com/michelmelo/merge-branch.git
创建时间: 2020-09-21T13:39:04Z
项目社区:https://github.com/michelmelo/merge-branch

开源协议:

下载


MM :: Merge branch

Runs a git merge in your CI.

Examples:

Sync branches

  1. name: Sync multiple branches
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. jobs:
  7. sync-branch:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@master
  11. - name: Merge development -> staging
  12. uses: michelmelo/merge-branch@1.2.1
  13. with:
  14. type: now
  15. from_branch: development
  16. target_branch: staging
  17. github_token: ${{ secrets.GITHUB_TOKEN }}
  18. - name: Merge staging -> uat
  19. uses: michelmelo/merge-branch@1.2.1
  20. with:
  21. type: now
  22. from_branch: staging
  23. target_branch: uat
  24. github_token: ${{ secrets.GITHUB_TOKEN }}

Merge current branch

  1. name: Merge any release branch to uat
  2. on:
  3. push:
  4. branches:
  5. - 'release/*'
  6. jobs:
  7. merge-branch:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@master
  11. - name: Merge staging -> uat
  12. uses: michelmelo/merge-branch@1.2.1
  13. with:
  14. type: now
  15. target_branch: uat
  16. github_token: ${{ secrets.GITHUB_TOKEN }}