Skip to content
git-merge

GitHub Action

Merge test branch

v2.7 Latest version

Merge test branch

git-merge

Merge test branch

Creates a branch named after the incoming owner and branch from the current branch then pulls the incoming branch into it.

Installation

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

              

- name: Merge test branch

uses: linaro-its/merge-test-branch@v2.7

Learn more about this action in linaro-its/merge-test-branch

Choose a version

Merge Test Branch action

This action is intended to be used as part of a pull_request_target workflow. It updates the checked-out repository to create a new branch and merge the incoming branch.

At the end of the workflow, the test branch is deleted automatically.

Inputs

path

An optional parameter, this specifies a path relative to $GITHUB_WORKSPACE where the repository can be found.

Example usage

uses: linaro-its/merge-test-branch@v2.7
with:
    path: website