GitHub · Arazzo Workflow
GitHub Commit a File to a New Branch
Version 1.0.0
Branch off the default branch and commit a new file to that branch.
Provider
Workflows
commit-file-to-new-branch
Create a branch from a base ref and commit a file to it.
Resolves the base branch SHA, creates a new branch reference from it, and commits a new file onto the branch.
1
getBaseRef
getReference
Read the base branch reference to obtain the commit SHA the new branch will point at.
2
createBranchRef
createReference
Create the new branch reference pointing at the base commit SHA returned by the previous step.
3
commitFile
createOrUpdateFileContents
Create the file on the new branch in a single commit.