Example for use merge branch on any github event
name: Merge staging branch to uat
on:
push:
branches:
- 'staging'
jobs:
merge-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Merge to uat branch
uses: devmasx/[email protected]
with:
type: now
target_branch: 'uat'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}