GitLab · Arazzo Workflow
GitLab Ensure a Branch Exists
Version 1.0.0
Check whether a branch exists and create it from a ref only when missing.
Provider
Workflows
ensure-branch-exists
Create a branch only when it does not already exist.
Reads a single branch by name; when it is found the flow ends with the existing branch, and when it is not found the flow creates the branch from the supplied ref.
1
getBranch
getApiV4ProjectsIdRepositoryBranchesBranch
Look up the branch by name. A 200 means it already exists; a 404 means it must be created.
2
createBranch
postApiV4ProjectsIdRepositoryBranches
Create the missing branch from the supplied ref.