Github Action for multiple branches merging
Required Github token. Usually secrets.GITHUB_TOKEN.
Required Branch to merge.
Regex pattern for all branches to be updated.
Comments in related PR to branch, notifying about the merge conflict.
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)\/.+'