Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
git-branch

GitHub Action

Create Branch

v2.0.0

Create Branch

git-branch

Create Branch

Creates a branch

Installation

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

              

- name: Create Branch

uses: peterjgrainger/action-create-branch@v2.0.0

Learn more about this action in peterjgrainger/action-create-branch

Choose a version

Create Branch Github Action

This action creates a new branch with the same commit reference as the branch it is being ran on.

Inputs

branch

Optional The name of the branch to create. Default "release-candidate".

Example usage

uses: peterjgrainger/action-create-branch@v1.0.0
env: 
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
  branch: 'release-notes'