This action merges the triggering branch into a target branch.
name | default | description |
---|---|---|
token |
${{ github.token }} |
GitHub API access token |
source |
${{ github.ref }} |
name of the source branch; defaults to the fully-formed ref of the branch or tag that triggered the workflow run |
target |
main |
name of the target branch |
message |
Merge {source} into {target} |
commit message template |
Merge the release/v1.0
branch into the main
branch:
name: Merge branch
on:
push:
branches: release/v1.0
jobs:
mirror-to-main:
runs-on: ubuntu-latest
steps:
- uses: metreeca/gh-sync-action@v2
with:
token: ${{ github.token }} # optional
source: ${{ github.ref }} # optional
target: main # optional
message: Merge {source} into {target} # optional
- open an issue to report a problem or to suggest a new feature
- start a discussion to ask a how-to question or to share an idea
This project is licensed under the Apache 2.0 License – see LICENSE file for details.