diff --git a/services/actions/githubrepositorycreateupdatecontent.go b/services/actions/githubrepositorycreateupdatecontent.go index 2e86aa4..89d4a5c 100644 --- a/services/actions/githubrepositorycreateupdatecontent.go +++ b/services/actions/githubrepositorycreateupdatecontent.go @@ -102,7 +102,7 @@ func (g *GithubRepositoryCreateOrUpdateContent) Definition() action.ActionDefini }, } - if g.defaultBranch != "" { + if g.defaultBranch == "" { properties["branch"] = jsonschema.Definition{ Type: jsonschema.String, Description: "The branch to create/update the file",