An open API service indexing awesome lists of open source software.

https://github.com/michelmelo/merge-branch

MM :: Merge branch
https://github.com/michelmelo/merge-branch

branch git merge michelmelo

Last synced: about 1 year ago
JSON representation

MM :: Merge branch

Awesome Lists containing this project

README

          

## MM :: Merge branch

Runs a git merge in your CI.

Examples:

### Sync branches

```yaml
name: Sync multiple branches
on:
push:
branches:
- '*'
jobs:
sync-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Merge development -> staging
uses: michelmelo/merge-branch@1.2.1
with:
type: now
from_branch: development
target_branch: staging
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Merge staging -> uat
uses: michelmelo/merge-branch@1.2.1
with:
type: now
from_branch: staging
target_branch: uat
github_token: ${{ secrets.GITHUB_TOKEN }}
```

### Merge current branch

```yaml
name: Merge any release branch to uat
on:
push:
branches:
- 'release/*'
jobs:
merge-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Merge staging -> uat
uses: michelmelo/merge-branch@1.2.1
with:
type: now
target_branch: uat
github_token: ${{ secrets.GITHUB_TOKEN }}
```