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.
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
Optional The SHA1 value for the branch reference.
Boolean value representing whether or not a new branch was created.
uses: peterjgrainger/action-create-branch@v2.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'release-notes'
sha: '${{ github.event.pull_request.head.sha }}'
Create Branch is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.
Tags
(1)Create Branch is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.