Skip to content

Synamedia/action-create-branch

This branch is up to date with peterjgrainger/action-create-branch:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Peter Grainger
Feb 27, 2024
10c7d26 · Feb 27, 2024

History

61 Commits
Nov 14, 2022
Sep 19, 2019
Dec 22, 2021
Feb 27, 2024
Dec 1, 2022
Sep 19, 2019
Sep 16, 2019
Dec 1, 2022
Feb 27, 2024
Sep 16, 2019
Feb 27, 2024
Feb 27, 2024
Sep 19, 2019
Sep 16, 2019

Repository files navigation

Create Branch GitHub Action

This action creates a new branch with the same commit reference as the branch it is being ran on, or your chosen reference when specified.

Inputs

branch

Optional The name of the branch to create. Default "release-candidate". If your branch conains forward slashes (/) use the full branch reference. Instead of /long/branch/name use refs/heads/long/branch/name. It's an issue with the GitHub API https://gist.github.com/jasonrudolph/10727108

sha

Optional The SHA1 value for the branch reference.

Outputs

created

Boolean value representing whether or not a new branch was created.

Example usage

uses: peterjgrainger/[email protected]
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
  branch: 'release-notes'
  sha: '${{ github.event.pull_request.head.sha }}'

About

Github action to create a branch

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 94.5%
  • JavaScript 5.5%