Go to file
miguemasx 56f38ea973 use constans 2020-03-15 22:46:46 +01:00
fixtures refactor gem 2019-11-24 04:27:36 +01:00
lib use constans 2020-03-15 22:46:46 +01:00
screenshots upgrade screenshot 2019-11-26 18:26:36 +01:00
spec fix validate inputs 2020-03-15 22:41:21 +01:00
.dockerignore use Gemfile 2019-11-26 19:06:53 +01:00
.gitignore test issue comment 2019-11-03 23:43:14 +01:00
CHANGELOG.md add change log 2020-03-15 22:43:59 +01:00
Dockerfile use Gemfile 2019-11-26 19:06:53 +01:00
Gemfile use Gemfile 2019-11-26 19:06:53 +01:00
Gemfile.lock update Gemfile lock 2019-11-26 19:07:27 +01:00
README.md update README 2019-11-27 15:20:15 +01:00
action.yml Trigger with any event (#1) 2019-11-27 11:59:43 +01:00

README.md

Merge branch action

On labeled

Merge pull request branch using GitHub labels.

When you set a label in a pull request this action can merge the pull request branch to other branch, useful for develop branch or staging environments.

PR Checker

name: Merge branch
on:
  pull_request:
    types: [labeled]
jobs:
  merge-branch:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Merge by labeled
        uses: devmasx/merge-branch@v1.1.0
        with:
          label_name: 'merged in develop'
          target_branch: 'develop'
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

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/merge-branch@v1.1.0
        with:
          type: now
          target_branch: 'uat'
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}