Update Flows: Git Tasks Now Default to main Branch in 0.21.0
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Default Git Branch
Changed default Git branch name from kestra to main.
The default branch within Git tasks has been renamed from kestra to main (PR #98). Update any workflows that implicitly rely on the former default branch within PushFlows, PushNamespaceFiles, SyncNamespaceFiles.
Here is an example before and after the change.
Before 0.21.0
id: push_to_gitnamespace: system
tasks: - id: commit_and_push type: io.kestra.plugin.git.PushFlows gitDirectory: _flows url: https://github.com/kestra-io/scripts # required string username: git_username # required string needed for Auth with Git password: "{{ secret('GITHUB_ACCESS_TOKEN') }}" branch: main # optional, uses "kestra" by defaultAfter 0.21.0
id: push_to_gitnamespace: system
tasks: - id: commit_and_push type: io.kestra.plugin.git.PushFlows gitDirectory: _flows url: https://github.com/kestra-io/scripts # required string username: git_username # required string needed for Auth with Git password: "{{ secret('GITHUB_ACCESS_TOKEN') }}" branch: main # optional, uses "main" by defaultWas this page helpful?