A GitHub Action that merge PR branch to other branchs
Fix read value from GITHUB_SHA or INPUT_FROM_BRANCH, checking empty string values. https://github.com/devmasx/merge-branch/pull/9
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}}