Skip to content
git-merge

GitHub Action

Regex Merge

v1.2 Latest version

Regex Merge

git-merge

Regex Merge

Github Action for multiple branches merging

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Regex Merge

uses: alagos/regex-merge@v1.2

Learn more about this action in alagos/regex-merge

Choose a version

Regex Merge

Github Action for multiple branches merging

Inputs

accessToken

Required Github token. Usually secrets.GITHUB_TOKEN.

headBranch

Required Branch to merge.

branchRegex

Regex pattern for all branches to be updated.

notifyConflicts

Comments in related PR to branch, notifying about the merge conflict.

Example usage

permissions: write-all
runs-on: ubuntu-latest
steps:
  - name: Merge main to release/.+
    uses: alagos/regex-merge@v1.2
    with:
      accessToken: ${{ secrets.GITHUB_TOKEN }}
      headBranch: main
      branchRegex: '^(release|staging)\/.+'