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/[email protected]

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/[email protected]
env: 
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
  branch: 'release-notes'