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
- Host: GitHub
- URL: https://github.com/michelmelo/merge-branch
- Owner: michelmelo
- Created: 2020-09-21T13:39:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-14T13:25:27.000Z (over 5 years ago)
- Last Synced: 2025-03-22T14:35:15.387Z (over 1 year ago)
- Topics: branch, git, merge, michelmelo
- Language: Ruby
- Homepage: https://www.buymeacoffee.com/michelmelo
- Size: 310 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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 }}
```